power, because they feared that the appearance of educated Brazilian classes would boost nationalism and aspirations toward political independence, as it had happened in the United States and several Latin American former Spanish colonies. However, throughout the centuries of Portuguese rule, Brazilian students were allowed and even encouraged to enroll at higher education in mainland Portugal. In addition, mainland Portugal's population at the time was also largely illiterate and had for most of those period a single university, the University of Coimbra, which educated Portuguese people from all the Empire, including from the colony of Brazil. The first firm attempts of having a Brazilian science establishment were made around 1783, with the expedition of Portuguese naturalist Alexandre Rodrigues Ferreira, who was sent by Portugal's prime minister, the Marquis of Pombal, to explore and identify Brazilian fauna, flora and geology. His collections, however, were lost to the French, when Napoleon invaded Portugal, and were transported to Paris by Étienne Geoffroy Saint-Hilaire. In 1772, even before the establishment of the Science Academy of Lisbon (1779), one of the first learned societies of both Brazil and the Portuguese Empire was founded in Rio de Janeiro - it was the Sociedade Scientifica, but lasted only until 1794. Also, in 1797, the first botanic institute was founded in Salvador, Bahia. During the late 18th century, the Real Academia de Artilharia, Fortificação e Desenho of Rio de Janeiro was created in 1792 through a decree issued by the Portuguese authorities as a higher education school for the teaching of the sciences and engineering. Both the engineering schools of the Rio de Janeiro Federal University and the Military Institute of Engineering were created and developed from the oldest engineering school of Brazil which is also one of the oldest in Latin America. D. João VI gave impetus to all these accoutrements of European civilization to Brazil. In a short period (between 1808 and 1810), the government founded the Royal Naval Academy and the Royal Military Academy (both military schools), the Biblioteca Nacional, the Rio de Janeiro Botanical Garden, the Medico-Chirurgical School of Bahia, currently known as Faculdade de Medicina under harbour of Universidade Federal da Bahia and the Medico-Chirurgical School of Rio de Janeiro (Faculdade de Medicina of Universidade Federal do Rio de Janeiro). Notable scientific expeditions organized by Brazilians were rare, the most significant one being that of Martim Francisco de Andrada e Silva and José