Ionic compounds have high melting and boiling points because the electrostatic interactions that hold the compounds together are very strong. Large amount of energy is needed to break strong electrostatic forces that hold oppositely charged ions together in solid lattice of ionic compounds like NaCl. So, ionic compounds have high melting, and boiling points.