In 1710, Sweden lost the territory of modern-day Estonia to the Russian Empire. The Russian administration eventually carried out large reconstruction schemes and turned the castle definitively into a palace. A new dominating wing in Baroque and Neoclassical style, designed by Johann Schultz, was added in the eastern part of the castle complex. It housed the administration of the Governorate and the living quarters of the governor. During the czarist era, a public park was also laid out to the south-east of the castle, and an archive building erected nearby.