Opelousas was founded as Poste des Opelousas by French traders in the middle of the 18th century, became the headquarters district of Opelousas under Spanish rule in 1769, served as the parish seat of Old Imperial St. Landry in 1808, and was the state capital from 1862 to 1863.