Berga name is from the Bergistani, an Iberian tribe who lived in the area before the Roman conquest. Berga was ruled by viscounts in the Early Middle Ages. It had its own counts starting in 988. Berga was sold to King Peter II of Aragon in 1199.