Ramon Berenguer was the son of Alfonso II, Count of Provence, and Garsenda, Countess of Forcalquier. After his father's death, Ramon's mother sent him to the Templar castle of Monzón in Aragon. He was accompanied by his cousin King James I of Aragon whose life was also under threat. He left Monzon around 1217 to claim his inheritance, which included the county of Forcalquier--inherited from his mother. On 5 June 1219, Ramon Berenguer married Beatrice of Savoy, daughter of Thomas, Count of Savoy. She was a shrewd and politically astute woman, whose beauty was likened by Matthew Paris to that of a second Niobe. The wedding also provided the 21-year-old Ramon with a powerful father-in-law to aid him in establishing his authority and protecting his interests. They had four daughters who reached adulthood, all of whom were well educated and married kings.
Ramon Berenguer and his wife were known for their support of troubadors, always having some around the court. He was known for his generosity, though his income did not always keep up. He wrote laws prohibiting nobles from performing menial work, such as farming or heavy labor. Ramon Berenguer had many border disputes with his neighbors, the counts of Toulouse. In 1226, Ramon began to reassert his right to rule in Marseille. The citizens there initially sought the help of Ramon's father-in-law Thomas, Count of Savoy in his role as imperial vicar. However, they later sought the help of Raymond VII, Count of Toulouse. In 1228, Ramon Berenguer supported his father-in-law in a double-sided conflict against Turin and Guigues VI of Viennois. This small war was one of many rounds intended to more firmly establish control over trade from Italy into France, and Provence included several key routes. While the Albigensian Crusade worked in his favor against Toulouse, Ramon Berenguer was concerned that its resolution in the Treaty of Paris left him in a precarious position. Raymond turned his troops from fighting France to attempting to claim lands from Provence. When Blanche of Castile sent her knight to both Toulouse and Provence in 1233, Ramon Berenguer entertained him lavishly, and the knight left well impressed by both the count and his eldest daughter, Margaret. Soon after, Blanche negotiated the marriage between Margaret and her son, Louis, with a dowry of ten thousand silver marks. Ramon Berenguer had to get contributions from allies for a portion, and had to pledge several of his castles to cover the rest. Ramon Berenguer and Beatrice travelled with their daughter to Lyon in 1234 to sign the marriage treaty, and then Margaret was escorted to her wedding in Sens by her uncles William and Thomas of Savoy. Shortly after, William began negotiating on Ramon Berenguer's behalf with Henry III of England to marry his daughter Eleanor. Henry sent his own knight to Provence early in 1235, and again Ramon Berenguer and his family entertained him lavishly. Henry wrote to William on June 22 that he was very interested, and sent a delegation to negotiate the marriage in October. Henry was seeking a dowry of up to twenty thousand silver marks to help offset the dowry he had just paid for his sister, Isabella. However, he had drafted seven different versions of the marriage contract, with different amounts for the dowry, the lowest being zero. Ramon Berenguer shrewdly negotiated for that option, offering as consolation a promise to leave her ten thousand marks in his last will. In 1238, Ramon Berenguer joined his brother-in-law Amadeus IV at the court of Emperor Frederick II in Turin. Frederick was gathering forces to assert more control in Italy. Raymond VII of Toulouse was also summoned, and all expected to work together in the war. In January 1244, Pope Innocent IV decreed that no one but the pope could excommunicate Ramon Berenguer. In 1245, Ramon Berenguer sent representatives to the First Council of Lyon, to discuss crusades and the excommunication of Frederick. Ramon Berenguer died in August 1245 in Aix-en-Provence, leaving the county to his youngest daughter, Beatrice.
Death and legacy
Ramon Berenguer IV died in Aix-en-Provence. At least two planhs of uncertain authorship were written in his honour. Giovanni Villani in his Nuova Cronica said:
Count Raymond was a lord of gentle lineage, and kin to them of the house of Aragon, and to the family of the count of Toulouse, By inheritance Provence, this side of the Rhone, was his; a wise and courteous lord was he, and of noble state and virtuous, and in his time did honourable deeds, and to his court came all gentle persons of Provence and of France and of Catalonia, by reason of his courtesy and noble estate, and he made many Provençal coblas and canzoni of great worth.