 They stayed in power when Estonia was occupied by Sweden in the 17th century and by the Russian Empire in the 18th century.Apart from a few Russians, all magistrates were German nobles.As large landowners they also possessed large parts of the Estonian soil.