After being ruled by Spain, France and then Mexico, Texas finally won its independence in 1836. A decade later in 1845, it became the 28th State to join the United States of America. Only a year after the annexation of Texas the first major conflict of the new state occurred - the Mexican-American War.