# Why do metals tend to lose electrons and nonmetals tend to gain electrons when forming ions?

Transition metals have $\left(n - 1\right) d$ and $n s$ orbitals which have many electrons similar in energy, meaning that it is sometimes easy for many of those electrons to be lost. This is also the reason why metals have a high electrical conductivity (i.e. their electrons are can easily move from atom to atom).