The town of San Juan del Río was founded in the first half of the 16th century, as part of the jurisdiction of the mayor's office of Querétaro. It gained importance following the territorial appropriation of the Bajío region by the Spanish, becoming a significant enclave for access to northern New Spain.