How the Occupation Became Legal