The Cathedral of Holy Wisdom in Polotsk was built by Prince Vseslav Briacheslavich between 1044 and 1066. It stands at the confluence of the Polota and Western Dvina Rivers on the eastern side of the city and is probably the oldest church in Belarus. The cathedral is, like the Saint Sophia Cathedral in Kiev and Saint Sophia Cathedral in Novgorod, named after the Holy Wisdom of God. After building his own cathedral, Vseslav, who was an izgoi prince, tried to seize the Kievan throne. Failing in that attempt, he raided the surrounding principalities; in 1067, he raided Novgorod the Great and looted the Cathedral of Holy Wisdom there, bringing a bell and other loot back to decorate his own Cathedral of Holy Wisdom. The cathedral is mentioned in The Tale of Igor's Campaign, where it says that Vseslav would make nocturnal trips to Kiev as a werewolf and would hear the bells of Holy Wisdom at Polotsk as they rang for matins. The cathedral has been significantly rebuilt and heavily modified between the eleventh and eighteenth centuries. Indeed, only parts of the church date back to the time of Vseslav, although the names of the builders are inscribed in a stone at the base of the cathedral: David, Toma, Mikula, Kopes, Petr, and Vorish. The burial vaults of 16 Polotsk princes dating back to the eleventh century have been uncovered. According to the Voskresenskaia Letopis, the cathedral originally had seven domes, later reduced to five after it was rebuilt following the fire of 1447. During 1596–1654 and 1668–1839 church was a Greek-Catholic cathedral. It was rebuilt again in 1618–1620 by Greek-Catholic Archbishop St. Josaphat Kuntsevych following a fire in 1607, and again after a fire destroyed the cathedral and the city in 1643. In 1705–1710, Peter the Great and Aleksandr Menshikov used the church as a powder magazine; the magazine exploded. Over the next almost three decades, the Uniate archbishop, Florian Hrebnicki, rebuilt the cathedral. The Vilnius architect Johann Christoph Glaubitz was responsible for the current appearance, which is an example of the "Vilnius Baroque" style. Currently it is a baroque structure with towers and the domes have been removed. The cathedral housed a library and other important cultural artifacts, but the library was destroyed when King Stephen Báthory of Poland took the city during the Livonian War in the late 16th century. The town was also occupied by the French during the Napoleonic Invasion in 1812 and also during the Nazi Invasion in the 1940s during which a large number of inhabitants were slaughtered. The cathedral has also changed functions several times over the centuries. With the Union of Brest, the cathedral became a uniate or Eastern Rite Catholic Church and remained as such until 1839 where Bishop Joseph Siemaszko terminated the union and restored the Greek Catholic Church in Russia with the Russian Orthodox Church. During the Soviet period, the cathedral housed the Polotsk Regional State Archive In 1967, restoration work took place as the cathedral was to be turned into a museum of atheism, but the museum was moved to Vitebsk in 1969. The cathedral is now part of the State Museum-Preserve of Polotsk and used as a concert hall with an organ. There is talk of returning the building to the Russian Orthodox Church.