Ions produced by metals in Groups 1 and 2 and by non-metals in Groups 6 and 7 gain full outer shell of electrons, so they have the same electronic structure as a noble gas (Group 0 element)
The different sized atoms distort the layers in the structure, making it harder for them to slide over each other, so alloys are harder than pure metals