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