This causes nickel and certain other metals to be magnetic.

Athe motion of protons in their atoms.
Bthe pattern of electrons in their atoms.
Cthe influence of the earth's magnetic field.
Dtheir atoms have more electrons than protons.