The U.S.–Iraq Status of Forces Agreement (official name: Agreement Between the United States of America and the Republic of Iraq On the Withdrawal of United States Forces from Iraq and the Organization of Their Activities during Their Temporary Presence in Iraq) was a status of forces agreement (SOFA) between Iraq and the United States, signed by President George W. Bush in 2008. It established that U.S. combat forces would withdraw from Iraqi cities by June 30, 2009, and all U.S. combat forces will be completely out of Iraq by December 31, 2011.[1] The pact required criminal charges for holding prisoners over 24 hours, and required a warrant for searches of homes and buildings that were not related to combat.[1] U.S. contractors working for U.S. forces would have been subject to Iraqi criminal law, while contractors working for the State Department and other U.S. agencies would retain their immunity. If U.S. forces committed still undecided "major premeditated felonies" while off-duty and off-base, they would have been subjected to an undecided procedures laid out by a joint U.S.-Iraq committee if the U.S. certified the forces were off-duty.[2][3][1][4]
The agreement expired at midnight on December 31, 2011, even though the United States completed its final withdrawal of troops from Iraq on December 16, 2011. The symbolic ceremony in Baghdad officially "cased" (retired) the flag of U.S. forces in Iraq, according to army tradition.[5]