The Republic of Texas declared independence from Mexico during the Texas Revolution.

Source