Iraq was granted official independence in 1932 in accordance with an agreement signed by the United Kingdom in 1930, whereby the United Kingdom would end its official mandate on the condition that the Iraqi government would allow British advisers to take part in government affairs, allow British military bases to remain, and a requirement that Iraq assist the United Kingdom in wartime. This made Iraq the first mandate created under the Treaty of Versailles to be granted independence. However the British retained military bases in the country. After Faisal died in 1933, king Ghazi reigned as a figurehead from 1933 to 1939 when he was killed in a motor accident. Pressure from Arab nationalists demanded that the British leave Iraq, their demands were ignored by the United Kingdom.