An ionic compound is a chemical compound that is composed of both metals and nonmetals. Two physical properties of an ionic compound are:i. They are hard and brittle.ii. They have high boiling and melting points. Magnesium chloride is an ionic compound since it comprises one metallic atom (Mg) or cation and two non-metallic atoms (Cl) or anions.  The chemical formula for Magnesium Chloride is Mg (S) + Cl₂ (g) \\[\\rightarrow\\] MgCl₂ (S).