Between 1821 and 1822, after the end of the war for the Independence of Mexico, the Santa Fe Trail was established to connect the US territory of Missouri with Santa Fe. At first, US merchants were arrested and imprisoned for bringing contraband into Mexican territory; however, the growing economic crisis in northern Mexico gave rise to an increased tolerance of this type of trade. In fact, the Santa Fe Trail (Sendero de Santa Fe) provided needed markets for local products (such as cotton) and manufactured products from New Mexico, so New Mexicans looked favorably on this new trade route. By 1827, a lucrative and commercial connection had been forged between Missouri, New Mexico, and Chihuahua.