powerful in the 17th and 18th centuries under Peter the Great and Catherine the Great when Saint Petersburg was the capital