This development made the city wealthy for the rest of the colonial period. Querétaro reached its height of the colonial period during the 18th century due to its strategic position with the northern territories and because of its livestock production. There was also a significant textile industry for local and regional markets. Querétaro was the first major producer of wool cloth in New Spain. At the end of the century, The Real Fabrica de Tabaco (Royal Tobacco Factory) was established, the second most important of its type in New Spain. There was also some mineral production, especially silver in an area called El Doctor.