when a metal reacts with a non-metal, the metal atom loses electrons to form a positive ion and the non-metal gains these electrons to form a negative ion. the oppositely charged forces are strongly attracted to each other by electrostatic forces. this attraction is known as an ionic bond.