Crown's custody. The governor, D. Luis Antonio Botelho Mourão, had as a priority to turn these new assets into productive units and increase tax collection. For that, Boutelho Mourão successfully requested authorization from the Viceroy to create civil parishes, known as freguesias, and to change the fiscal status of villages to the category of Vila (town). Then, on July 27, 1767, São José reached the official status of town, with a hall and a pillory, passing over the status of civil parish; and the name Vila de São José do Paraíba was formalized. But for many years it maintained the same rural characteristics. The main difficulty was the fact that the Estrada Real (Royal Road) passed by its limits, far from the village. Cotton and coffee In the middle of the 19th century, the village of São José do Paraíba had demonstrated some signs of economic growth through the development of agriculture. Cotton production evolved rapidly in the region, exported to the English textile industry. The production reached a peak in 1864. In the same year, on April 22, the town became the seat of a municipality, acquiring finally, in 1871, the current name of São José dos Campos, followed by the creation of a judiciary district in 1872. Almost simultaneously, there was development of coffee crops in Paraíba Valley, which started to take off in 1870. In 1886, after the opening of the Estrada de Ferro Central do Brasil railway (1877), the coffee production peaked. Then started to decay, running steady until the 1930s. Hydro-mineral retreat and industrialization The call for the municipality of São José dos Campos for the treatment of pulmonary tuberculosis by sanatoriums became noticed at the beginning of last century, due to its supposedly favorable climate conditions. The city became known as the Sanatorium City. The country's then-largest hospital, the Vicentina Aranha Sanitarium, was opened in town in 1924, and in 1935 the municipality was officially recognized as a health retreat. With the advent of antibiotics in the 1940s, tuberculosis begins to be treated anywhere, thus ending the healthcare advantage carried out by São José, whereas the establishment of industries was about just to start. The industrialization process of the municipality takes hold from the installation of the Technological Institute of Aeronautics in 1950 and also with the opening of the Dutra Highway (BR-116), thus making possible a faster connection between Rio de Janeiro and