Soil forms from weathered rock and sediment that has been mixed with organic matter from dead and decaying plants and animals. As compost from plant and animal remains mixes with rocks and minerals, it creates humus, making the soil dark and fertile. Soil provides nutrients like nitrogen, phosphorus, and potassium that plants need to grow. Different soils have varying structures and depths depending on their location, and a soil profile maps the different layers underground.