Barbastro (Latin: Barbastrum or Civitas Barbastrensis, Aragonese: Balbastro) is a city in the Somontano county, province of Huesca, Spain. The city (also known originally as Barbastra or Bergiduna) is at the junction of the rivers Cinca and Vero.
An ancient Celtiberian city called Bergidum or Bergiduna, in Roman times Barbastro (now called Brutina) was included in the Hispania Citerior region, and later of Hispania Tarraconensis.
After the fall of the Western Roman Empire, it was part of the Visigoth kingdom. Barbastro and the Barbitaniya area were overtaken by Musa bin Nusair in 717, as part of the Ummayad push to conquer northern states of the Marca Hispanica and the name Madyar was given to the town.
It was later settled by the Banu Jalaf who made it the capital of the Emirate of Barbineta and Huesca until 862, and was known as the Emirate of Brabstra until 882.
In 1064, Sancho Ramírez, King of Aragón, and his Frankish Christian forces, led by William VIII of Aquitaine and Le Bon Normand, invaded the city, which at the time was part of the emir of Zaragoza. This attack, which caused over 50,000 victims, was known as the Siege of Barbastro. The following year, however, it was reconquered by the Moors. In 1101 it was conquered by Peter I of Aragon, who made it a bishopric seat. Barbastro since then followed the history of Aragon and Spain.