First record of the St. Peter's Church dates back to 1209. The church was a masonry construction and therefore undamaged by a city fire in Riga that year. The history of the church can be divided into three distinct periods: two associated with Gothic and Romanesque building styles, the third with the early Baroque period. The middle section of the church was built during the 13th century, which encompasses the first period. The only remnants of this period are located in the outer nave walls and on the inside of a few pillars in the nave, around which larger pillars were later built.
The second period dates to 15th century, when master builders Johannes Rumeschottel from Rostock supervised the construction of the sanctuary, based on the St. Mary's Church in Rostock. The old bell tower was replaced in 1456, and a bell was hung in the new tower in 1477. A 136 metres (446 ft) octagonal steeple was added to the tower in 1491, which, along with the church's front facade, dominated the silhouette of Riga. The tower collapsed 11 March 1666, destroying a neighboring building and burying eight people in the rubble.
Three identical portals by Bindenshu and Andreas Peterman were added in 1692. The third period of construction dates to 1671–90. The newly renovated church served for a mere 29 years, for lightning struck and set fire to the tower and church 10 May 1721. Only the church and tower walls remained standing after the fire. Reconstruction of the church began immediately under the direction of the master carpenter Tom Bochum and master mason Kristofer Meinert. By 1723 the building already had a temporary roof. Johann Heinrich Wilbern took over supervision of the project in 1740, and under his direction a new 69.6 metres steeple was built in 1746.
The church burned down 29 June 1941. Conservation and restoration began 1954 with research by architect Pēteris Saulītis. The work was carried out from 1967 to 1983 under the direction of Saulītis and architect Gunārs Zirnis. The St. Peter's Latvian Lutheran congregation resumed services in the church 1991, and the church was returned to the ownership of the Evangelical Lutheran Church of Latvia on 4 April 2006.
References:Tyniec Benedictine abbey was founded by King Casimir the Restorer probably around 1044. Casimir decided to rebuild the newly established Kingdom of Poland, after a Pagan rebellion and a disastrous Czech raid of Duke Bretislaus I (1039). The Benedictines, invited to Tyniec by the King, were tasked with restoring order as well as cementing the position of the State and the Church. First Tyniec Abbot was Aaron, who became the Bishop of Kraków. Since there is no conclusive evidence to support the foundation date as 1040, some historians claim that the abbey was founded by Casimir the Restorer’ son, King Boleslaw II the Generous.
In the second half of the 11th century, a complex of Romanesque buildings was completed, consisting of a basilica and the abbey. In the 14th century, it was destroyed in Tatar and Czech raids, and in the 15th century it was rebuilt in Gothic style. Further remodelings took place in the 17th and 18th centuries, first in Baroque, then in Rococo style. The abbey was partly destroyed in the Swedish invasion of Poland, and soon afterwards was rebuilt, with a new library. Further destruction took place during the Bar Confederation, when Polish rebels turned the abbey into their fortress.
In 1816, Austrian authorities liquidated the abbey, and in 1821-1826, it was the seat of the Bishop of Tyniec, Grzegorz Tomasz Ziegler. The monks, however, did not return to the abbey until 1939, and in 1947, remodelling of the neglected complex was initiated. In 1968, the Church of St. Peter and Paul was once again named the seat of the abbot. The church itself consists of a Gothic presbytery and a Baroque main nave. Several altars were created by an 18th-century Italian sculptor Francesco Placidi. The church also has a late Baroque pulpit by Franciszek Jozef Mangoldt.