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:The Pilgrimage Church of Wies (Wieskirche) is an oval rococo church, designed in the late 1740s by Dominikus Zimmermann. It is located in the foothills of the Alps in the municipality of Steingaden.
The sanctuary of Wies is a pilgrimage church extraordinarily well-preserved in the beautiful setting of an Alpine valley, and is a perfect masterpiece of Rococo art and creative genius, as well as an exceptional testimony to a civilization that has disappeared.
The hamlet of Wies, in 1738, is said to have been the setting of a miracle in which tears were seen on a simple wooden figure of Christ mounted on a column that was no longer venerated by the Premonstratensian monks of the Abbey. A wooden chapel constructed in the fields housed the miraculous statue for some time. However, pilgrims from Germany, Austria, Bohemia, and even Italy became so numerous that the Abbot of the Premonstratensians of Steingaden decided to construct a splendid sanctuary.