After flowing for through its narrow Himalayan valley, the Ganges emerges from the mountains at Rishikesh, then debouches onto the Gangetic Plain at the pilgrimage town of Haridwar. At Haridwar, a dam diverts some of its waters into the Ganges Canal, which irrigates the Doab region of Uttar Pradesh, whereas the river, whose course has been roughly southwest until this point, now begins to flow southeast through the plains of northern India.