Tamasopo is a municipality and town in the Mexican state of San Luis Potosí. The town is located at 21°55′21″N 99°23′33″W. The municipality had an area of 1,329 square kilometres (513 sq mi) and a population of 28,848 in 2010, including the population of the town of Tamasopo with 4,326 people.
Tamasopo is located in the Huasteca region, named after the indigenous people of the area. Indigenous people number 4,461 people in the municipality of whom 2,950 speak an indigenous language. The indigenous population belongs mostly to two groups: the Huastecas who traditionally lived in the southern portion of the municipality and the Pame who lived in the northern part of the municipality.