The United States took possession of most of Arizona at the end of the Mexican War in 1848. In 1853 the land below the Gila River was acquired from Mexico in the Gadsden Purchase. Arizona was administered as part of the Territory of New Mexico until it was organized into a separate territory on 24 February 1863. Arizona was admitted to the Union on 14 February 1912.