The Republic of Texas was an independent sovereign nation that existed from 1836 to 1845, following its declaration of independence from Mexico. It emerged after a series of conflicts between Texian settlers and the Mexican government, culminating in the famous Battle of San Jacinto, which secured Texan independence. The Republic was characterized by its struggle for recognition and eventual annexation into the United States, which played a crucial role in the lead-up to the Mexican–American War.