According to later inscription (presumably from 17th century), St. Giles Church was founded in 1082 by Władysław I Herman as thanks for birth of his son Bolesław III Wrymouth. Actually it was founded probably not later than in 1138 by Hemran's son, Bolesław III Wrymouth. The church was restored between 1924 and 1926 and thoroughly between 1936 and 1938 with raising of the tower by one storey. The restorations changed the architecture of the church.
References:Saint-Émilion is a picturesque medieval village renowned for its well-preserved architecture and vineyards. The town and surrounding vineyards was made a UNESCO World Heritage Site in 1999, owing to its long, living history of wine-making, Romanesque churches and ruins stretching all along steep and narrow streets.
An oppidum was built on the hill overlooking the present-day city in Gaulish times, before the regions was annexed by Augustus in 27 BC. The Romans planted vineyards in what was to become Saint-Émilion as early as the 2nd century. In the 4th century, the Latin poet Ausonius lauded the fruit of the bountiful vine.
Because the region was located on the route of the Camino de Santiago, many monasteries and churches were built during the Middle Ages, and in 1199, while under Plantagenet rule, the town was granted full rights.