query: When did Portugal's monarchy end?
passage: Kingdom of Portugal
After the Portuguese Restoration War of 1640–1668, the kingdom passed to the House of Braganza and thereafter to the House of Braganza-Saxe-Coburg and Gotha. From this time, the influence of Portugal declined, but it remained a major power due to its most valuable colony, Brazil. After the independence of Brazil, Portugal sought to establish itself in Africa, but was ultimately forced to yield to the British interests, leading to the collapse of the monarchy in the 5 October 1910 revolution and the establishment of the First Portuguese Republic.
passage: History of Portugal
The vacuum of power created by Sidónio Pais's murder on 14 December 1918 led the country to a brief civil war. The monarchy’s restoration was proclaimed in the north of Portugal (known as the Monarchy of the North) on 19 January 1919, and four days later a monarchist insurrection broke out in Lisbon. A republican coalition government, led by José Relvas, coordinated the struggle against the monarchists by loyal army units and armed civilians. After a series of clashes the monarchists were definitively chased from Oporto on 13 February 1919. This military victory allowed the PRP to return to government and to emerge triumphant from the elections held later that year, having won the usual absolute majority.