Answer: Confederate power in the New Mexico Territory was effectively broken when the campaign culminated in the Union victory at the Battle of Glorieta Pass in 1862. However, the territorial government continued to operate out of Texas, and Confederate troops marched under the Arizona flag until the end of the war.