Waterfalls form when harder rock layers overlay softer rock, allowing the river to erode the softer rock faster and create a notch. Over time, the notch deepens into a plunge pool, leading to the eventual collapse of the harder rock and the formation of a gorge as the waterfall retreats upstream. The process of erosion continues, with hydraulic action and corrasion contributing to the expansion of the notch and plunge pool.