A team of Moroccan researchers has produced the first national high-resolution maps of phosphorus and potassium levels in Morocco’s croplands using machine learning and thousands of soil samples. The freely available maps aim to improve fertilizer recommendations, support precision farming, and promote sustainable agriculture.