Instruct: Given a question, retrieve relevant documents that can help answer the question.
Query: When did Portugal's monarchy end?
King Carlos I of Portugal confirmed colonial treaties of the 19th century that stabilized the situation in Portuguese Africa. These agreements were, however, unpopular in Portugal, where they were seen as being to the disadvantage of the country. In addition, Portugal was declared bankrupt twice—first on 14 June 1892 and again on 10 May 1902—causing industrial disturbances, socialist and republican antagonism, and press criticism of the monarchy. Carlos responded by appointing João Franco as Prime Minister and subsequently accepting Parliament's dissolution. In 1908, Carlos I was assassinated in Lisbon. The Portuguese monarchy lasted until 1910 when, through the 5 October revolution, it was overthrown and Portugal was proclaimed a republic. The overthrow of the Portuguese monarchy in 1910 led to a 16-year struggle to sustain parliamentary democracy under republicanism – the Portuguese First Republic (1910–1926).
Throughout the 17th century, the increasing predations and beleaguering of Portuguese trading posts in the East by the Dutch, English and French, and their rapidly growing intrusion into the Atlantic slave trade undermined Portugal's near monopoly on the lucrative oceanic spice and slave trades. This sent the Portuguese spice trade into a long decline. To a lesser extent, the diversion of wealth from Portugal by the Habsburg monarchy to help support the Catholic side of the Thirty Years' War also created strains within the union, although Portugal did benefit from Spanish military power in helping to retain Brazil and in disrupting Dutch trade. These events, and those that occurred at the end of the House of Aviz and the period of the Iberian Union, led Portugal to a state of dependency on its colonies, first India and then Brazil.
Dom Manuel I (; 31 May 1469 – 13 December 1521), the Fortunate (Port. ""), King of Portugal and the Algarves, was the son of Ferdinand, Duke of Viseu, by his wife, the Infanta Beatrice of Portugal. His name is associated with a period of Portuguese history distinguished by significant achievements both in political affairs and in the arts. In spite of Portugal’s small size and population in comparison to the great European land powers of France, Italy and even Spain, the classical Portuguese "Armada" was the largest in the world at the time. During Manuel's reign Portugal was able to acquire an overseas empire of vast proportions, the first in world history to reach global dimensions. The landmark symbol of the period was the Portuguese discovery of Brazil and the South American subcontinent in April 1500.
On July 24, 1580, António proclaimed himself King of Portugal in Santarém, followed by acclamation in several locations throughout the country; his domestic government lasted for 20 days, until he was defeated in the Battle of Alcântara by Habsburg armies led by the Duke of Alba. After the fall of Lisbon, he purported to rule the country from Terceira Island, in the Azores, where he established a government in exile until 1583; António even had coins minted—a typical assertion of sovereignty and royalty. Some authors consider him the last monarch of the House of Aviz (instead of Cardinal-King Henry) and the 18th King of Portugal. His government in Terceira island was only recognized in the Azores, whereas on the continent and in the Madeira Islands power was exercised by Philip II, who was acclaimed king in 1580 as Philip I of Portugal and recognized as official king by the Cortes of Tomar in 1581. The new king's election was carried on condition that the kingdom and its overseas territories should remain separate from Spain and keep their own laws and Cortes.
The abolition of all forms of slavery occurred in 1761 on mainland Portugal and Portuguese India through a decree by the Marquis of Pombal, followed, in 1777, by Madeira. The transatlantic slave trade was definitely outlawed altogether by Portugal in 1836, at the same time as other European powers, as a result of British pressure. Slavery within the African Portuguese colonies, however, would only be definitely abolished in 1869, following a treaty between United States and Britain for the suppression of the slave trade. In Brazil, which had become independent from Portugal in 1822, slavery was finally abolished in 1888.
Throughout the 17th century, the increasing predations and surrounding of Portuguese trading posts in the East by the Dutch, English and French, and their rapidly growing intrusion into the Atlantic slave trade, undermined Portugal's near monopoly on the lucrative oceanic spice and slave trades. This sent the Portuguese spice trade into a long decline. The diversion of wealth from Portugal by the Habsburg monarchy to help support the Catholic side of the Thirty Years' War also strained the union, although Portugal did benefit from Spanish military power in retaining Brazil and in disrupting Dutch trade. Over time, Portugal became economically dependent on its colonies, first India and then Brazil.
With the death of the Cardinal-King Henry (1578–1580), Philip II of Spain inherited the Kingdom of Portugal, initiating a personal union of the crowns that would last until 1640. During this period, Portuguese political power moved from Sintra to Vila Viçosa, principal centre of the House of Braganza, whose dukes, descendents of John of Portugal, were heirs to the throne of Portugal. Following the decision of the "Cortes" of Tomar in 1581, Phillip as King of Portugal accepted an administration composed of the Portuguese aristocracy. He passed through Sintra around October 1581, visiting the monasteries and churches. It was during this period that cult of Sebastianism, the hope for the return of King Sebastian, came to an end, when several fake "Sebastians" were denounced. In 1585 Mateus Alvares, born on the island of Terceira in the Azores and guardian of the hermitage of São Julio, passed himself off as King Sebastian and created conflict in Sintra, Madra, Rio de Mouro and Ericeira. The Sebastian adventure ended with the hanging of thirty people and the suffering of many more. It was not surprising, therefore, that the visit in 1619 by King Phillip IV of Spain (Phillip III of Portugal) resulted in many families escaping to the hills. During this union (1580–1640), Sintra was a privileged place for Portuguese "exiles" from the Castilian court; nobles who wished to distance themselves from Spanish nobility would purchase lands in the region, away from court intrigue. At the time of the Restoration, in 1640, the municipality had approximately 4000 residents.
Upon the start of World War II in 1939, the Portuguese Government announced on 1 September that the 600-year-old Anglo-Portuguese Alliance remained intact, but that since the British did not seek Portuguese assistance, Portugal was free to remain neutral in the war and would do so. In an aide-mémoire of 5 September 1939, the British Government confirmed the understanding. As Hitler's occupation swept across Europe, neutral Portugal became one of the Continent's last escape routes. Portugal managed to remain neutral throughout the war despite extraordinary pressures from both sides, notably over the strategically located Azores islands and over the wolfram (tungsten) trade.
The complete list of Presidents of the Portuguese Republic consists of the 20 heads of state in the history of Portugal since the 5 October 1910 revolution that installed a republican regime. This list includes not only those persons who were sworn into office as President of Portugal but also those who "de facto" served as head of state since 1910. This is the case of Teófilo Braga who served as President of the Provisional Government after the republican coup d'état. Also Sidónio Pais, Mendes Cabeçadas, Gomes da Costa, as well as Canto e Castro and Óscar Carmona in their early months, were not sworn into office as the President of the Republic, usually being the President of the Ministry (Prime Minister), but "de facto" accumulation this functions with that of the Head of State. See the notes for more information.
Spain's world empire reached its greatest territorial extent in the late 18th century but it was under the Habsburg dynasty in the 16th and 17th centuries it reached the peak of its power and declined. The Iberian Union with Portugal meant that the monarch of Castile was also the monarch of Portugal, but they were ruled as separate entities both on the peninsula and in Spanish America and Brazil. In 1640, the House of Braganza revolted against Spanish rule and reasserted Portugal's independence.
In the 20th century, the province was also subject to the authoritarian regime that ruled Portugal from 1933 to 1974, until the military coup in Lisbon, known as the Carnation Revolution. Most members of the government of Mozambique were from Portugal, but a few were Africans. Nearly all members of the bureaucracy were from Portugal, as most Africans did not have the necessary qualifications to obtain positions.
By the ending of 1808 the whole Royal Family of Portugal left Europe, with the country being attacked by Napoleon, and settled in Brazil. The regent prince arrived with his wife, Charlotte Joaquina, daughter of Charles IV and sister of Ferdinand VII. When the news of the imprisonment of Ferdinand VII arrived in South America, Charlotte tried to take control of the viceroyalties as regent, a project known as Carlotism. She could do so due to the derogation of the salic law by Charles IV in 1789, and she intended to prevent a French invasion in the Americas. Some Criollos like Castelli, Beruti, Vieytes and Belgrano supported the project, considering it a chance to get a local government instead of one in Europe, or a medium for a later declaration of independence. Other Criollos like Moreno, Paso or Saavedra were critics of it, as well as most peninsular Spaniards and Viceroy Liniers. They suspected the whole project of concealing Portuguese ambitions in the region, and her public image wasn't positive: the people around her in Brazil (like the infant Pedro Carlos de Bourbon), and her relations with her husband, caused strong public dislike. Charlotte also rejected her supporters, as they intended her to lead a constitutional monarchy, while she wanted to retain an absolute monarchy. Britain, with strong presence in Portugal, also opposed the project: they did not want to let Spain, now allied with them against France, be split into many kingdoms, and did not consider Charlotte able to prevent separatism.
When Napoleon was defeated in 1815, the European powers held the Congress of Vienna to reorganize the political map of the continent. Portugal participated in these negotiations, but given British machinations contrary to the interests of the House of Braganza, Portugal's ambassador to the Congress, the Count of Palmela, counseled the regent to remain in Brazil, as did the powerful Prince Talleyrand, in order to strengthen the ties between metropolis and colony, including the suggestion to elevate Brazil to the condition of a kingdom united to Portugal. The representative of the United Kingdom also ended up supporting the idea, which resulted in the effective foundation of the United Kingdom of Portugal, Brazil and the Algarves on , a juridical institution rapidly recognized by other nations.
Spain came into existence as a single, united kingdom under Charles I of Spain on 23 January 1516. The monarchy was briefly abolished by the First Spanish Republic from 11 February 1873 until 29 December 1874. The monarchy was abolished again on 14 April 1931, first by the Second Spanish Republic – which lasted until 1 April 1939 – and subsequently by the dictatorship of Francisco Franco, who ruled until his death on 20 November 1975. Monarchy was restored on 22 November 1975 under Juan Carlos I, who was also the monarch until his abdication in 2014. His son Felipe VI is the current monarch. 
The 1978 constitution confirms the title of the monarch is the "King of Spain", but that he may also use other titles historically associated with the Crown,
including the kingdoms of Castile and León, Aragon, the Two Sicilies, Jerusalem, Navarre, Granada, Seville, Toledo, Valencia, Galicia, Sardinia, Córdoba, Corsica, etc.
The current President of Portugal is Marcelo Rebelo de Sousa, who took office on 9 March 2016.
King Dinis of Portugal, who also contributed (with 137 extant texts, more than any other author) to the secular poetic genres, made the language official in Portugal in 1290. Until then, Latin had been the official (written) language for royal documents; the spoken language did not have a name and was simply known as "lingua vulgar" ("ordinary language", that is Vulgar Latin) until it was named "Portuguese" in King Dinis' reign. "Galician-Portuguese" and "português arcaico" ("Old Portuguese") are modern terms for the common ancestor of modern Portuguese and modern Galician. Compared to the differences in Ancient Greek dialects, the alleged differences between 13th-century Portuguese and Galician are trivial.
Despite the authoritarian character of the regime, Portugal did not experience the same levels of international isolation as Spain did following World War II. Unlike Spain, Portugal under Salazar was accepted into the Marshall Plan (1947–1948) in return for the aid it gave to the Allies during the final stages of the war. Furthermore, also unlike Spain, it was one of the 12 founding members of the North Atlantic Treaty Organisation (NATO) in 1949, a reflection of Portugal's role as an ally against communism during the Cold War in spite of its status as the only non-democratic founder. In 1950, Portugal joined the European Payments Union and participated in the founding of the European Free Trade Association (EFTA) in 1960 and the Organisation for Economic Co-operation and Development in 1961. It joined the General Agreement on Tariffs and Trade in 1962, and finally, Portugal signed a free trade agreement with the European Economic Community in 1972, still under the auspices of the "Estado Novo".
Portugal set Angola's independence date for 11 November 1975. Three prominent liberation movements contended for the role of leading the newly formed independent country, namely: UNITA, FNLA and the MPLA. Each of the three movements received foreign assistance, UNITA from western countries, FNLA from China (and later from the West) and MPLA from the Soviets and Cuba. Although many exhaustive attempts were made (by Portugal) to get the three movements to agree to a peaceful democratic system of power sharing (with multi-party democracy), the specter of being the sole ruler of Angola seemed to undermine any peaceful solution. Cuba added to the failure of the Alvor Accord (to bring the three parties together) by inducing MPLA to believe that with Cuba's backing they could dominate any military confrontation and win Angola's rule.
With King John II's death, in 1495, his cousin, Manuel I, Duke of Beja and Viseu, succeeded King John II as King Manuel I of Portugal. King Manuel I's personal monopoly on the spice trade allowed the King to be a great patron of the arts, constructing numerous palaces, convents, and churches throughout the country. King Manuel I took a great interest in Évora, establishing his court there on various occasions. From 1502 to 1520, King Manuel I ordered a vast series of renovations, constructions, and enlargements. During the Manueline Campaigns, as the works are collectively known as, the palace grew to one of the largest palaces in Iberia. Through architects Martim Lourenço, Álvaro Anes, and António de Lagoa the Manuline Campaign saw the construction of Couto Hall, the Wing of the Infantes, an infirmary, the Royal Gardens and Hunting Grounds, the Royal Library, and the Gallery of Dames, which is the only part of the palace to survive to present day. Alongside expansion of the palace, King Manuel I also renovated the existing parts of the palace, remodeling the Queen's Hall, the servants quarters, and the Rossio of the Palace. In 1519, King Manuel I ordered architect André Pires to turn the plain Hall of Ambassadors into a Manueline Throne Room, which would direct itself towards the Palace Rossio.
Portugal's overseas presence in Sub-Saharan Africa (most notably in Angola, Cape Verde, Mozambique, Guinea-Bissau and São Tomé and Príncipe) lasted from the 16th century to 1975, after the Estado Novo regime was overthrown in a military coup in Lisbon. Rhodesia unilaterally declared independence from the United Kingdom in 1965, under the white minority government of Ian Smith, but was not internationally recognized as an independent state (as Zimbabwe) until 1980, when black nationalists gained power after a bitter guerrilla war. Although South Africa was one of the first African countries to gain independence, the state remained under the control of the country's white minority through a system of racial segregation known as apartheid until 1994.
On 11 January 1890, the United Kingdom issued the 1890 British Ultimatum demanding that Portugal refrain from occupying land lying between the Portuguese colonies of Angola, on the west coast of Africa, and Mozambique, on the east coast, thereby forming one contiguous polity (as proposed on the Pink Map). Despite a popular uproar, the Portuguese government was forced to accept the U.K.'s demands. This contributed to the unpopularity of King Carlos I and the monarchy, and it garnered support for the increasingly popular republican movement in Portugal.
Manuel continued to plead for calm at the end of the War; while not abandoning the possibility of taking action in the future, he insisted on waiting to the end of peace negotiations in Paris: he was fearful that continued anarchy in Portugal would prejudice its negotiating position. But, for Paiva Couceiro and the other Integralists, this was the moment: they awaited the royal authorization of the King's adjunct Aires de Ornelas. Receiving a memorandum that requested this authorization, and convinced that this action would not occur immediately, Ornelas wrote on the margin, "Go on. Palavras de El-Rei", and signed the document. On 19 January 1919 a thousand soldiers and some artillery, under the command of Paiva Couceiro occupied Porto, in order to restore the Constitutional Monarchy, and its King Manuel II. A provisional government was established that controlled Minho, Trás-os-Montes (with the exception of Chaves), Mirandela and Vila Real), as well as part of the district of Aveiro, but contrary to Couceiro's expectations, the rest of the country did not rise.
The history of the kingdom of Portugal and the Algarves, from the First Treaty of San Ildefonso and the beginning of the reign of Queen Maria I in 1777, to the end of the Liberal Wars in 1834, spans a complex historical period in which several important political and military events led to the end of the absolutist regime and to the installation of a constitutional monarchy in the country.
On 19 January 1919, the Monarchy of the North was proclaimed in Porto. The monarchy would be deposed a month later and no other monarchist counterrevolution in Portugal has happened since.
The Secret Convention on the Transfer of the Portuguese monarchy to Brazil was an international treaty between Portugal and Britain on October 22, 1807, also called "secret Convention on the transfer to Brazil of the seat of the Portuguese monarchy and temporary occupation of Madeira Island by British troops. " It was signed in London, taking place in the context of the Napoleonic wars. More specifically, it was agreed a few days before the first invasion of Portugal in the Peninsular War, when the Napoleonic troops were already approached the Portuguese borders through Spanish territory. Later, the Portuguese aspirations became reality with the support of the British navy during the transfer of the Portuguese court to Brazil, and Portugal complied to the British requirements by opening the Brazilian ports to their goods.