Metal oxides can affect soil fertility by influencing the availability of nutrients to plants. They can either release essential nutrients, enhancing fertility, or immobilize heavy metals, reducing toxic effects. However, excessive metal oxides can disrupt soil pH balance, potentially harming soil microbial activity and plant growth.