Ottoman rule ended with World War I, and the British Empire administered Iraq as Mandatory Iraq until the establishment of the Kingdom of Iraq in 1933. A republic formed in 1958 following a coup d'état. Saddam Hussein governed from 1968 to 2003, into which period fall the Iran–Iraq War and the Gulf War. Saddam Hussein was deposed following the 2003 invasion of Iraq. Over the following years in the U.S. occupation of Iraq, Iraq disintegrated into a civil war from 2006 to 2008, and the situation deteriorated in 2011 which later escalated into a renewed war following ISIL gains in the country in 2014. By 2015, Iraq was effectively divided, the central and southern part being controlled by the government, the northwest by the Kurdistan Regional Government and the western part by the Islamic State of Iraq and the Levant. ISIL was expelled from Iraq in 2017, but a low-intensity ISIL insurgency continues mostly in the rural parts of northern Iraq.