The Texas shoreline was first viewed by a Spaniard in 1519 and Tejas was part of Spanish empire until Mexico won its independence from Spain and on July 21, 1821, the flag of Castile and León was lowered for the last time at San Antonio.