In 1946, the US Defence Force Allied left Iceland. The nation formally became a member of NATO on 30 March 1949, amid domestic controversy and riots. On 5 May 1951, a defence agreement was signed with the United States. American troops returned to Iceland as the Iceland Defence Force and remained throughout the Cold War. The US withdrew the last of its forces on 30 September 2006.