In a pure metal, the ions are all the same size and in a regular arrangement of layers, allowing them to slide over each other easily, making them soft. In an alloy, there are different sized ions which disrupt the regular arrangement and prevent the layers from sliding over each other so easily.