Following the defeat of the Confederate States in the American Civil War, Texas was mandated to rejoin the United States of America. Union Army soldiers officially occupied the state starting on June 19, 1865; the date is now commemorated as the holiday Juneteenth, recognizing the official emancipation of slaves in the state.