When a ionic substance melts, the giant ionic lattice is broken.
In its molten (melted) state, the ions are free to move around.
To free the ions during melting, the ionic bonds must be broken.
The ionic bonds (also called electrostatic forces) are strong, so lots of energy is needed to break them.
Some ions have more than one charge so need more energy to overcome electrostatic forces e.g. MgO
This means ionic compounds have high melting points