Rocks become magnetic when

A. Earth's magnetic field reverses direction
B. Iron particles within the rock align with earth's magnetic field
C. Continents move
D. Rocks are heated to extreme temperature

B. Iron particles within the rock align with Earth's magnetic field