Which type of forces hold the atoms together in an ionic compound?

Electrostatic forces of attraction.