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:House of the Blackheads (Melngalvju nams) is a building situated in the old town of Riga. The original building was erected during the first third of the 14th century for the Brotherhood of Blackheads, a guild for unmarried German merchants in Riga. Major works were done in the years 1580 and 1886, adding most of the ornaments.
The structure was bombed to a ruin by the Germans June 28, 1941 and the remains demolished by the Soviets in 1948. The current reconstruction was erected from 1995 to 1999. Today the House of Blackheads serves as a museum and sometimes concert hall.