Agnes of Aquitaine (, ; – ) was Queen of Aragon during her brief marriage to King Ramiro II, a former monk. The couple separated after the birth of their only child, Queen Petronilla, and retired to monasteries. Agnes chose the Abbey of Fontevraud, from where she continued to take part in the affairs of her sons from her first marriage to Viscount Aimery V of Thouars. First marriage Agnes was the daughter of Duke William IX of Aquitaine and Countess Philippa of Toulouse. She was the namesake of her aunt Agnes, wife of King Peter I of Aragon and Navarre. Her first marriage, to Viscount Aimery V of Thouars, was celebrated some time prior to 9 January 1117, when the couple confirmed the possessions of the abbey of Saint-Laon de Thouars. Before Aimery's death in 1127, the couple had three sons: William I (died 1151), succeeded his father Guy, lord of Oiron (died c. 1149) Geoffrey IV (died 1173), succeeded William Second marriage On 13 November 1135 in the cathedral of Jaca, the ancient capital of the Kingdom of Aragon, Agnes married King Ramiro II, a monk who had resigned the bishopric of Roda in order to succeed his childless brother Alfonso the Battler. The anonymous contemporary author of the Chronica Adefonsi imperatoris attributes the initiative in Ramiro's marriage to the Aragonese: They elected Alfonso's brother king. This man was a monk, and his name was Ramiro. They gave him the sister of the Count of Poitiers for a wife. Even though this was a great sin, the Aragonese did it, for they had lost their king and hoped that there would be an offspring from the royal family. . . King Ramiro went to his wife, and she conceived and gave birth to a daughter. . . He transferred the kingdom to his daughter and acknowledged his sins. He then did penance. Agnes' age (approximately thirty) and proven fertility in her prior marriage were probably the main reasons the Aragonese sought her out. Agnes' brother, Duke William X, was also one of the few regional supporters of Antipope Anacletus II, who, as the weaker claimant to the papacy, might be persuaded to support Ramiro's irregular (and uncanonical) accession. Agnes' dowry was a church at Loscertales. In a document from the same month as his marriage, Ramiro declares that he "took a wife not out of carnal lust, but