Answer
The arrangement of electrons determines whether an element is diamagnetic or paramagnetic.
Work Step by Step
If the net magnetic moment of all the atomic current loops is zero (i.e., the orbital and spin magnetic moments of the electrons cancel out), the material is diamagnetic. Otherwise, the material is paramagnetic (or possibly even ferromagnetic).