In 1763, Mobile came under British control. Its restrictions on free blacks and racial segregation caused many Creoles to leave Mobile and move west towards New Orleans. In 1780, Spain took control of the Mobile area in the aftermath of the American Revolution. The Carnival celebration incorporated the Spanish custom of torch-lit parades on Twelfth Night (January 6, also known as Epiphany.) In 1813, Mobile became a United States city, included in the Mississippi Territory. In 1817 it was part of the Alabama Territory. In the Anglican and Episcopal traditions, the day before Ash Wednesday was celebrated as Shrove Tuesday, marked by consumption of rich foods before the fasting practices of Lent.