Transgression occurs when the sea level rises and the shoreline moves backward across the land, causing flooding.