The territory became a French Colony in 1872 and achieved independence on 1 August 1960 , as the Republic of Benin .