Answer: The charges on cation and anion balances each other.
Step-by-step explanation:
For formation of a neutral ionic compound, the charges on cation and anion must be balanced. The cation is formed by loss of electrons by metals and anions are formed by gain of electrons by non metals.
![Mg:12:1s^22s^22p^63s^2](https://img.qammunity.org/2021/formulas/physics/college/y9e3tfwoohgxdhfzs4m7mqu87cnzibqdbo.png)
![Mg^(2+):10:1s^22s^22p^6](https://img.qammunity.org/2021/formulas/physics/college/gnpum8a871sjitcxszhucildlyes3k1ykj.png)
![Cl:17:1s^22s^22p^63s^23p^5](https://img.qammunity.org/2021/formulas/physics/middle-school/aazj0h1n94coipgwk1jfohk0aimatkqghd.png)
![Cl^(-):18:1s^22s^22p^63s^23p^6](https://img.qammunity.org/2021/formulas/physics/college/75m3p15tzsoyg2g7dx6r0oi8w9kgej4j5h.png)
Thus
combines with two
ions to give neutral
![MgCl_2](https://img.qammunity.org/2021/formulas/chemistry/college/1l0oprpkk2nu4zc1gkflc4i9ylywiy50bv.png)