An alloy is a mixture of a metal with other elements. Brass is a mixture of copper and zinc. Stainless steel is a mixture of iron with other elements such as chromium, nickel and carbon. An alloy is a mixture, not a compound: the elements are not chemically joined and the proportions can vary.
In a pure metal the atoms are all the same size and lie in regular layers. When a force is applied the layers slide over each other, so the metal is soft and malleable. In an alloy the atoms of the added element are a different size. They break up the regular layers, so the layers can no longer slide over each other. This makes the alloy harder and stronger.