The Zagros Mountains have been occupied since at least the Lower Palaeolithic, and Neanderthal occupation of the Great Zab basin has been testified at the archaeological site of Shanidar Cave. Historical records for the region are available from the end of the third millennium BCE onward. In the Neo-Assyrian period, the Great Zab provided water for irrigation for the lands around the capital city of Nimrud. The Battle of the Zab – which ended the Umayyad Caliphate – took place near a tributary of the Great Zab, and the valleys of the river provided shelter for refugees from the Mongol conquest of Iraq. During the 19th and 20th centuries, the Great Zab basin saw frequent uprisings of local Kurdish tribes striving for autonomy.