From the House of Braganza restoration in 1640 until the end of the reign of the Marquis of Pombal in 1777, the Kingdom of Portugal was in a transition period. Having been near its height at the start of the Iberian Union, the Portuguese Empire continued to enjoy the widespread influence in the world during this period that had characterized the period of the Discoveries. By the end of this period, however, the fortunes of Portugal and its empire had declined, culminating with the Távora affair, the catastrophic 1755 Lisbon earthquake, and the accession of Maria I, the first ruling Queen of Portugal.
The opulent use of Brazilian gold, the absolutist regime, the movement toward the independence of Brazil, the Methuen Treaty and the Lisbon earthquake contributed to the collapse of Portugal's position in Europe and the world. These events, those at the end of the Aviz dynasty, and the period of the Iberian Union forced Portugal to depend more on its colonies, first India and then Brazil. This shift from India to Brazil was a natural consequence of the rise of the Dutch as well as the British Empire. A similar shift occurred after Brazil gained independence, leading Portugal to focus more on its possessions in Africa.
The early 18th century, known as the Pombaline Era after Sebastião José de Carvalho e Melo, Marquis of Pombal, was a period of dictatorship and wide-ranging reforms. The Marquis of Pombal was appointed by Joseph I, who had little inclination to rule. He initiated many reforms intended to modernize the country and attacked the power of the privileged nobility and clergy, notably in the case of the Távora affair and the expulsion of the Jesuits. He was also the leader of the reconstruction of Lisbon after the earthquake in 1755. However, historians also argue that Pombal's "enlightenment," while far-reaching, was primarily a mechanism for enhancing autocracy at the expense of individual liberty and especially an apparatus for crushing opposition, suppressing criticism, and furthering colonial economic exploitation as well as intensifying book censorship and consolidating personal control and profit.
Soon after the death of Joseph in 1777, his daughter Maria I dismissed Pombal, and prohibited him from coming within 20 miles of her.
Background
The Battle of Alcácer Quibir in 1578 saw both the death of the young king Sebastian and the end of the House of Aviz. Sebastian's successor, the Cardinal Henry of Portugal, was 70 years old. Henry's death was followed by a dynastic crisis, with three grandchildren of Manuel I claiming the throne: Catherine, Duchess of Braganza, who was married to John, 6th Duke of Braganza; António, Prior of Crato; and Philip II of Spain. António had been acclaimed King of Portugal by the people of Santarém on July 24, 1580, followed by many other cities and towns throughout the country. However, Philip II marched into Portugal and defeated the troops loyal to the Prior of Crato in the Battle of Alcântara. Philip II was crowned Philip I of Portugal in 1580 (he was subsequently recognized as official king by the Portuguese Cortes of Tomar in 1581) and the Philippine Dynasty began.
Portugal's status was maintained under the first two kings of the Philippine Dynasty, Philip I and his son Philip II of Portugal and III of Spain. Both monarchs gave excellent positions to Portuguese nobles in the Spanish courts, and Portugal maintained independent laws, currency, and government. However, the joining of the two crowns deprived Portugal of a separate foreign policy, and Spain's enemies became Portugal's. The war with England led to a deterioration of relations with Portugal's oldest ally (since the Treaty of Windsor in 1386) and the loss of Hormuz.