The church was given in 977 to the Abbey of La Réole by Gombaud, Bishop of Vasconie and Guillaume, Duke of Gascony.
In 1087, Bertrand de Taillecavat gave a quarter of the church of Saint-Ayrard to the abbey of La Réole.
A charter of 1233 attributed to the prior of La Réole the rights to the city of Duras, as he owned the priory of Saint-Ayrard.
The first castle of Duras dates from the 12th century and was built on a rocky outcrop overlooking the Dropt valley.
The castle was captured in 1254, from the Viscounts of Benauges and Bezaume by King Henry III of England after a revolt of the Gascon lords.