Hydrogeology is the branch of geology that deals with the distribution and movement of groundwater in the soil and rocks of the Earth's crust. It plays a critical role in managing water resources, assessing environmental impacts, and addressing issues related to water supply and contamination.