Wifred II of Cerdanya (970–1050), also known as Guifré, was a Catalan count and feudatory who later became a monk. The eldest son of Oliba Cabreta and Ermengard of Empúries, he inherited the County of Cerdanya in 988. His mother served as regent until 994, following Oliba Cabreta’s retirement to Monte Cassino. Wifred also became Count of Berga in 1003, when his brother Oliba entered religious life.
That same year, Wifred and his brother Bernard joined Christian rulers in resisting a Muslim invasion at the Battle of Torà. Wifred supported churches and monasteries, taking part in the consecration of San Martín del Canigó, a foundation established in 1007 and consecrated in 1009. He also sought to free Cerdanya from the jurisdiction of the Diocese of Urgell, a dispute that brought him into conflict with Saint Ermengol. In 1023, he made a peace concord with Berengar Raymond I of Barcelona and William I of Besalú.
Wifred married Guisla of Pallars, and their children included Raymond, who succeeded him in Cerdanya, and Bernard, who succeeded him in Berga. Other sons included William I of Cerdanya, Wifred, Archbishop of Narbonne, Berengar, Bishop of Elna, William Wifred, Bishop of Urgell, and Berengar, who later held Berga and became Bishop of Girona. Their children also included Arduin and Fe, who married Hugh of Rouergue.
In 1035, Wifred retired as a monk at San Martín del Canigó, the monastery he had founded. He died in 1050. His mortuary roll was carried as far as Liège, where the cathedral chapter added 14 poems.