How do you name #MgCl_2#?
Magnesium is in group II and will always form a 2+ ion when reacting. Equally, chorine is I group VII and will tend to gain one electron from a metal to form a 1- ion.
Compare this to iron chloride. Iron can form a 2+ or 3+ ion, therefore you must make a difference in naming