Binary compounds are formed when a cation combines with an anion. Such compounds are also known as ionic compounds.
The four binary compounds that can be formed are as follows:
Mg²⁺ I⁻
When writing the empirical formula the charge of the anion is written as the subscript of the cation, and the charge of the cation is written as the as script of the anion, such as