During the period of Spanish rule (1716-1821), Texas was one of four provinces in New Spain, or colonial Mexico. Spain was unable to populate the area north of the Rio Grande; to maintain their claim on the territory, the Spanish relied on a system of Franciscan missions. Over the years, about two dozen missions were built in Texas, with the goal of transforming the Indians into Spanish subjects by teaching them the Roman Catholic religion and other aspects of Spanish culture