The Territory of Arizona was a territory claimed by the Confederate States of America during the American Civil War, between 1861 and 1865. It consisted of the portion of the New Mexico Territory south of the 34th parallel north, including parts of the modern states of New Mexico and Arizona. Its capital was Mesilla along the southern border. The Confederate territory overlapped, but was not identical to, the Arizona Territory created by the United States in 1863. The territory was officially declared on August 1, 1861, following the Confederate victory at the Battle of Mesilla. Confederate hold in the area was soon broken, however, after the Battle of Glorieta Pass, the defining battle of the New Mexico Campaign. In July, 1862, the government relocated to the town of El Paso, Texas, where it remained for the duration of the war. However, the territory continued to be represented in the Confederate Congress and Confederate troops continued to fight under the Arizona banner until the war's end.