Microorganisms play a crucial role in soil fertility by breaking down organic matter into nutrients that plants can absorb, such as nitrogen, phosphorus, and potassium. They also help improve soil structure, promote root growth, and protect plants from diseases. Additionally, some microorganisms can fix atmospheric nitrogen, making it available to plants, further enhancing soil fertility.