Wells often had to be sunk a considerable depth in order to tap the nearest geological stratum holding sufficient water, the actual depth depending on the height of the castle and level of the groundwater. This was particularly challenging in the construction of hill castles. In addition, there was also the problem of providing sufficient oxygen for well diggers as they dug the well out of the rock by hand.