Magnesium deficiency in plants occurs when they have used up all the small reserves of this element that are present in the soil.