Bernard V (died 1172), son of Raymond Pilet d’Alès and his wife Mabel, of an unknown family.
Bernard IV inherited the countship from his father Raymond II, representing a lineage of Counts of Melgueil dating to 930.
Bertrand was disinherited by his mother and unsuccessfully fought the arrangements made with the Counts of Toulouse by his sister.
Bertrand married a woman named Bonafosse (d. 1205) of an unknown family and had one child Raymond (d. 1129).
The counts of Toulouse ruled Melgueil until 1211 when Pope Innocent III enfeoffed it to Guillaume d'Autignac, Bishop of Maguelone.