Title: Peter II of Portugal
Content:  Dom Pedro II (Peter II; 26 April 1648 – 9 December 1706), nicknamed "the Pacific", was the King of Portugal from 1683 until his death, previously serving as regent for his brother Afonso VI from 1668 until his own accession. He was the fifth and last child of John IV and Luisa de Guzmán.
Title: Peter II of Portugal
Content:  Third son of King John IV and Queen Luisa, he was created Duke of Beja and Lord of the House of the Infantado. Following his father's death, his mother became regent for the new king Afonso VI, Peter's elder, partially paralysed, and mentally unstable brother. In 1662 Afonso put away his mother and assumed control of the state. In January 1668, shortly before Spanish recognition of Portugal's restoration of independence, Peter acquired political ascendancy over his brother and was appointed regent, banishing Afonso to the Azores and, later, Sintra where he died in 1683. Peter thereupon inherited the throne. Peter not only inherited his brother's throne but also wed his former spouse, Queen Marie-Françoise of Savoy (1646–1683). They had one daughter, Isabel Luísa, Princess of Beira (1669–90), who was heir presumptive.
Title: Peter I of Portugal
Content:  Peter I (Portuguese: Pedro I, ; 8 April 1320 – 18 January 1367), called the Just (o Justo) or the Cruel (o Cruel), was King of Portugal from 1357 until his death. He was the third but only surviving son of Afonso IV of Portugal and his wife, Beatrice of Castile.
Title: Peter I, Count of Urgell
Content:  Peter I (Pedro, ) (23 February 1187 - 2 June 1258) was the second son of King Sancho I of Portugal and his wife Dulce, infanta of Aragon, and would eventually become Count of Urgell and Lord of the Balearic Islands.
Title: Peter, Constable of Portugal
Content:  His father's position as the regent of the Kingdom of Portugal gained him special advantages. In 1443, after the death of his cousin Infante Diogo and by the instigation of his father, Peter was elected the Constable of Portugal, making him one of the most powerful military men in the kingdom. Afonso, Marquis of Valença, the son of his half-uncle Afonso, 1st Duke of Braganza, had expected to become constable, but Peter's father had appoint him instead. This political move along with Afonso V's marriage to Isabella of Coimbra, Peter's sister, instead of the daughter of the Duke of Braganza destroyed the relationship of these former allies. In 1448, when 
Title: Peter I of Portugal
Content:  In 1328, Peter's father, Afonso IV arranged for the marriage of his eldest daughter, Maria, to Alfonso XI of Castile. In 1334, she bore him a son, who ultimately became Peter of Castile. However, Maria returned home to her father in Portugal in 1335 because her royal husband soon after their marriage had begun a long affair with the beautiful and newly widowed Leonor de Guzman, which the Castilian king refused to end. Alfonso's cousin, Juan Manuel, Prince of Villena, had been rebuffed by the Castilian king in 1327 when the two-year child marriage between his daughter Constanza (granddaughter of James II of Aragon) and Alfonso had 
Title: Peter, Constable of Portugal
Content:  His parents were Infante Peter, Duke of Coimbra, and Isabella of Urgell. He inherited a claim to the Aragonese throne through his maternal grandfather James II, Count of Urgell, who was the last male descendant of the House of Barcelona and heir to the Crown of Aragon by the rights of agnatic primogeniture.
Title: History of Portugal (1640–1777)
Content:  Peter II of Portugal. Peter II is considered the first absolutist monarch of Portugal. He dismissed the historic legislative Portuguese Cortes in 1697 and ruled alone. He encouraged the focusing of Portuguese exploration of Brazil after silver was found in the territory. Peter's reign also saw the signing of the Methuen Treaty of trade with England. Peter was succeeded by his son John V in 1706. An admirer of Louis XIV, John maintained a lavish court paid for by the riches of Brazil and ruled as an absolutist king, ignoring the Cortes (which had only convened sporadically since 1640) and personally appointing ministers. 
Title: Peter II of Portugal
Content:  finish the project, by pressures, perhaps, of Louis XIV on the dynasty of Savoy. In 1683, Queen Maria Francisca died. In the court there was a strong «French party», headed by the Duke of Cadaval, the then Count of Vila Maior and by the Viscount of Ponte de Lima, but others favored a closer alliance with Spain. By marrying again, Peter II chose the sister of the Queen of Spain, daughter of Philipp Wilhelm, Elector Palatine. The new queen, Maria Sophia of Neuburg, never influenced political life, maintaining a low profile. The couple had eight children, including the younger John, who succeeded his father in 1706 as King John V of Portugal.
Title: Peter III of Portugal
Content:  Pedro married his niece Maria, Princess of Brazil, in 1760, at which time she was the heiress presumptive to the throne then held by his brother José I. According to custom, Pedro thus became king of Portugal in right of his wife. They had six children, of whom the eldest surviving son succeeded Maria as João VI on her death in 1816. Pedro made no attempt to participate in government affairs, spending his time hunting or in religious exercises. He also defended the high nobility of Portugal, and sponsored the petitions of those accused in Távora affair, whose rehabilitation was subject of new lawsuits, in which the heirs demanded the restitution of their confiscated properties. Peter III was moderately friendly toward the Jesuits, who had been banished from Portugal and its overseas empire in 1759, largely at the behest of the Marquis of Pombal. Peter III had taken some of his early education from the Jesuits, explaining this. His affection had little effect; Pope Clement XIV ordered the Jesuits suppressed across Europe in 1773.

Question: Who is the father of Peter II of Portugal?
Answer: John IV of Portugal.