Sodic soils are formed when sodium ions are relatively higher than the other cations, impacting the soil structure.