During the Russian-Polish-Swedish war he served as a voivod. In 1657 he blitzed a number of Swedes under Gdov. He was promoted to boyar on March 27, 1659. In January 1660 he attacked Brest and set it on fire. During the Copper Riot in Moscow on 25 July 1662 he dealt with insurgents and then led an investigation committee based in Kolomenskoe. In 1663 he was proclaimed a judge of the Yamskoi Prikaz. Between 1669–1678 he governed Pskov, Smolensk, and Novgorod. He was reputed as a dour and masterful manager who did not look kindly on local licentiousness and manners.