Ionic compounds are formed when electrostatic attractions form between oppositely charged ions. These attractions are strong and so require a large amount of energy to break. This energy is provided in the high melting temperature.CaO has a higher melting point than LiCl due to the Ca2+ ion. This ion has a greater charge than Li+ and so forms stronger attractions. The stronger the attraction, the more energy required to overcome it.