The soil's ability to hold water mostly depends on its porosity, or more simply its composition. If the soil is made out of materials like clay, which have smaller particles that enable more water to stick to it, then the soil will be able to hold a lot of water.