Shortly after the Civil War began, the Confederacy turned its attention to the Southwest, and in February, 1862, three thousand three hundred troops under the command of Confederate General Sibley defeated the Union troops at Valverde, raised the Confederate flag, and occupied Santa Fe. The Confederates were defeated two weeks later in the Battle of Glorieta Pass.