Dom Pedro I (12 October 1798 – 24 September 1834), known in Brazil and in Portugal as "the Liberator" () or "the Soldier King" () in Portugal, was the founder and first ruler of the Empire of Brazil from 1822 to 1831 (under the name of Pedro I) and King of Portugal in 1826 (under the name of Pedro IV).

Born in Lisbon, Pedro was the fourth child of King Dom John VI of Portugal and Queen Carlota Joaquina, and thus a member of the House of Braganza. When the country was invaded by French troops in 1807, he and his family fled to Portugal's largest and wealthiest colony, Brazil. The outbreak of the Liberal Revolution of 1820 in Lisbon compelled Pedro I's father to return to Portugal in April 1821, leaving him to rule Brazil as regent. He had to deal with challenges from revolutionaries and insubordination by Portuguese troops, all of which he subdued. The Portuguese government's threat to revoke the political autonomy that Brazil had enjoyed since 1808 was met with widespread discontent in Brazil. Pedro I chose the Brazilian side and declared Brazil's independence from Portugal on 7 September 1822. On 12 October, he was acclaimed Emperor and by March 1824 had defeated all armies loyal to Portugal. A few months later, Pedro I crushed the short-lived Confederation of the Equator, a failed secession attempt by provincial rebels in Brazil's northeast.

A secessionist rebellion in the southern province of Cisplatina in early 1825, and the subsequent attempt by the United Provinces of the Río de la Plata to annex it, led the Empire into the Cisplatine War. In March 1826, Pedro I briefly became king of Portugal before abdicating in favor of his eldest daughter, Dona Maria II. The situation worsened in 1828 when the war in the south resulted in Brazil's loss of Cisplatina. During the same year in Lisbon, Maria II's throne was usurped by Prince Dom Miguel, Pedro I's younger brother. The Emperor's concurrent and scandalous sexual affair with Domitila de Castro tarnished his reputation. Other difficulties arose in the Brazilian parliament, where a struggle over whether the government would be chosen by the monarch or by the legislature dominated political debates from 1826 to 1831. Unable to deal with problems in both Brazil and Portugal simultaneously, on 7 April 1831 Pedro I abdicated in favor of his son Dom Pedro II, and sailed for Europe.

Pedro I invaded Portugal at the head of an army in July 1832. Faced at first with what seemed a national civil war, he soon became involved in a wider conflict that enveloped the Iberian Peninsula in a struggle between proponents of liberalism and those seeking a return to absolutism. Pedro I died of tuberculosis in September 1834, just a few months after he and the liberals had emerged victorious. He was hailed by both contemporaries and posterity as a key figure who helped spread the liberal ideals that allowed Brazil and Portugal to move from absolutist regimes to representative forms of government.

Early years

Birth

Pedro was born at 08:00 on 12 October 1798 in the Queluz Royal Palace near Lisbon, Portugal.See: , , , . He was named after St. Peter of Alcantara, and his full name was Pedro de Alcântara Francisco António João Carlos Xavier de Paula Miguel Rafael Joaquim José Gonzaga Pascoal Cipriano Serafim. He was referred to using the honorific "Dom" (Lord) from birth.

Through his father, Prince Dom John (later King Dom John VI), Pedro was a member of the House of Braganza () and a grandson of King Dom Peter III and Queen Dona (Lady) Maria I of Portugal, who were uncle and niece as well as husband and wife. His mother, Doña Carlota Joaquina, was the daughter of King Don Charles IV of Spain. Pedro's parents had an unhappy marriage. Carlota Joaquina was an ambitious woman, who always sought to advance Spain's interests, even to the detriment of Portugal's. Reputedly unfaithful to her husband, she went as far as to plot his overthrow in league with dissatisfied Portuguese nobles.

As the second eldest son (though the fourth child), Pedro became his father's heir apparent and Prince of Beira upon the death of his elder brother Francisco António in 1801. Prince Dom John had been acting as regent on behalf of his mother, Queen Maria I, after she was declared incurably insane in 1792. By 1802, Pedro's parents were estranged; John lived in the Mafra Palace and Carlota Joaquina in Ramalhão Palace. Pedro and his siblings resided in the Queluz Palace with their grandmother Maria I, far from their parents, whom they saw only during state occasions at Queluz.

Education

In late November 1807, when Pedro was nine, the royal family escaped from Portugal as an invading French army sent by Napoleon approached Lisbon. Pedro and his family arrived in Rio de Janeiro, then capital of Brazil, Portugal's largest and wealthiest colony, in March 1808.See: , , . During the voyage, Pedro read Virgil's Aeneid and conversed with the ship's crew, picking up navigational skills. In Brazil, after a brief stay in the City Palace, Pedro settled with his younger brother Miguel and their father in the Palace of São Cristóvão (Saint Christopher). Although never on intimate terms with his father, Pedro loved him and resented the constant humiliation his father suffered at the hands of Carlota Joaquina due to her extramarital affairs. As an adult, Pedro would openly call his mother, for whom he held only feelings of contempt, a "bitch". The early experiences of betrayal, coldness and neglect had a great impact on the formation of Pedro's character.

A modicum of stability during his childhood was provided by his (governess), Maria Genoveva do Rêgo e Matos, whom he loved as a mother, and by his (supervisor) friar António de Arrábida, who became his mentor. Both were in charge of Pedro's upbringing and attempted to furnish him with a suitable education. His instruction encompassed a broad array of subjects that included mathematics, political economy, logic, history and geography. He learned to speak and write not only in Portuguese, but also Latin and French.See: , , . He could translate from English and understood German. Even later on, as an emperor, Pedro would devote at least two hours of each day to study and reading.

Despite the breadth of Pedro's instruction, his education proved lacking. Historian Octávio Tarquínio de Sousa said that Pedro "was without a shadow of doubt intelligent, quick-witted, [and] perspicacious." However, historian Roderick J. Barman relates that he was by nature "too ebullient, too erratic, and too emotional". He remained impulsive and never learned to exercise self-control or to assess the consequences of his decisions and adapt his outlook to changes in situations. His father never allowed anyone to discipline him. While Pedro's schedule dictated two hours of study each day, he sometimes circumvented the routine by dismissing his instructors in favor of activities that he found more interesting.

First marriage

The prince found fulfillment in activities that required physical skills, rather than in the classroom. At his father's Santa Cruz farm, Pedro trained unbroken horses, and became a fine horseman and an excellent farrier. He and his brother Miguel enjoyed mounted hunts over unfamiliar ground, through forests, and even at night or in inclement weather. He displayed a talent for drawing and handicrafts, applying himself to wood carving and furniture making. In addition, he had a taste for music, and under the guidance of Marcos Portugal the prince became an able composer (later creating Brazil's Independence Anthem). He had a good singing voice, and was proficient with several musical instruments (including piano, flute and guitar), playing popular songs and dances. Pedro was a simple man, both in habits and in dealing with others. Except on solemn occasions when he donned court dress, his daily attire consisted of white cotton trousers, striped cotton jacket and a broad-brimmed straw hat, or a frock coat and a top hat in more formal situations.See:

He would frequently take time to engage in conversation with people on the street, noting their concerns.

Pedro's character was marked by an energetic drive that bordered on hyperactivity. He was impetuous with a tendency to be domineering and short-tempered. Easily bored or distracted, he entertained himself with dalliances with women in addition to his hunting and equestrian activities. His restless spirit compelled him to search for adventure, and, sometimes in disguise as a traveler, he frequented taverns in Rio de Janeiro's disreputable districts. He rarely drank alcohol, but was an incorrigible womanizer. His earliest known lasting affair was with a French dancer called Noémi Thierry, who had a stillborn child by him. Pedro's father, who had ascended the throne as John VI, sent Thierry away to avoid jeopardizing the prince's betrothal to Archduchess Maria Leopoldina, daughter of Emperor Francis I of Austria (formerly Francis II, Holy Roman Emperor).

On 13 May 1817, Pedro was married by proxy to Maria Leopoldina. When she arrived in Rio de Janeiro on 5 November, she immediately fell in love with Pedro, who was far more charming and attractive than she had been led to expect. After "years under a tropical sun, his complexion was still light, his cheeks rosy." The 19-year-old prince was handsome and a little above average in height, with bright dark eyes and dark brown hair. "His good appearance", said historian Neill Macaulay, "owed much to his bearing, proud and erect even at an awkward age, and his grooming, which was impeccable. Habitually neat and clean, he had taken to the Brazilian custom of bathing often." The Nuptial Mass, with the ratification of the vows previously taken by proxy, occurred the following day. Seven children resulted from this marriage: Maria (later Queen Dona Maria II of Portugal), Miguel, João, Januária, Paula, Francisca and Pedro (later Emperor Dom Pedro II of Brazil).

Independence of Brazil

Liberal Revolution of 1820

On 17 October 1820, news arrived that the military garrisons in Portugal had mutinied, leading to what became known as the Liberal Revolution of 1820. The military formed a provisional government, supplanting the regency appointed by John VI, and summoned the —the centuries-old Portuguese parliament, this time democratically elected with the aim of creating a national Constitution. Pedro was surprised when his father not only asked for his advice, but also decided to send him to Portugal to rule as regent on his behalf and to placate the revolutionaries. The prince was never educated to rule and had previously been allowed no participation in state affairs. The role that was his by birthright was instead filled by his elder sister Dona Maria Teresa: John VI had relied on her for advice, and it was she who had been given membership in the Council of State.

Pedro was regarded with suspicion by his father and by the king's close advisers, all of whom clung to the principles of absolute monarchy. By contrast, the prince was a well-known, staunch supporter of liberalism and of constitutional representative monarchy. He had read the works of Voltaire, Benjamin Constant, Gaetano Filangieri and Edmund Burke.See: , , . Even his wife Maria Leopoldina remarked, "My husband, God help us, loves the new ideas." John VI postponed Pedro's departure for as long as possible, fearing that once he was in Portugal, he would be acclaimed king by the revolutionaries.

On 26 February 1821, Portuguese troops stationed in Rio de Janeiro mutinied. Neither John VI nor his government made any move against the mutinous units. Pedro decided to act on his own and rode to meet the rebels. He negotiated with them and convinced his father to accept their demands, which included naming a new cabinet and making an oath of obedience to the forthcoming Portuguese Constitution.See: , , ,