What was one reason shared by Spain and Mexico for settling texas

One reason shared by Spain and Mexico for settling Texas was to establish control and prevent other European powers, such as France, from expanding their territory in North America.