The local
hegumen, however, allowed her to live there much as a lay woman would. She even found herself a lover, an officer named Stepan Glebov. Nine years later, when Peter the Great learned about their affair, he sentenced Glebov to execution by
impalement. Gradually, Eudoxia and her son became the centre of opposition to Peter's reforms, primarily from the church officials. In his sermons,
Demetrius of Rostov referred to Eudoxia as "our great sovereign" and prophesied her impending return to the throne. This conservative party was shattered by Peter in 1718. During the prosecution of
Tsarevich Alexei Petrovich of Russia, all the bishops who supported her were executed, and Eudoxia was transferred to a convent in
Ladoga. After Peter's death and the rise of his second Empress consort
Catherine I on the throne, Eudoxia was secretly moved to
Shlisselburg Fortress near
St. Petersburg, where she was under strict custody as a state prisoner in a dungeon. In 1727, her grandson
Peter II ascended the Russian throne and immediately recalled her to
Moscow. She returned to the former capital with a great pomp and was allowed to keep her own court at the
Novodevichy Convent until her death in 1731. After the death of Peter II, who had died before her in 1730, she was among the nominated candidates for the new monarch, but she declined, in favor of her niece-in-law
Empress Anna, so Anna continued to honor her. ==Issue==