with the holy image of Our Lady of St. Theodore. Feeling how insecure his throne was, Mikhail attempted to emphasize his ties with the last Rurikid tsars and sought advice from the Zemsky Sobor on every important issue. This strategy proved successful. The early Romanovs were generally accepted by the population as in-laws of Ivan the Terrible and viewed as innocent martyrs of Godunov's wrath. Dynastic crisis Mikhail was succeeded by his only son Alexei, who steered the country quietly through numerous troubles. Upon Alexei's death, there was a period of dynastic struggle between his children by his first wife Maria Ilyinichna Miloslavskaya (Feodor III, Sofia Alexeyevna, Ivan V) and his son by his second wife Nataliya Kyrillovna Naryshkina, the future Peter the Great. Peter ruled from 1682 until his death in 1725. In numerous successful wars he expanded the tsardom into a huge empire that became a major European power. He led a cultural revolution that replaced some of the traditionalist and medieval social and political system with a modern, scientific, Europe-oriented, and rationalist system. New dynastic struggles followed the death of Peter. His only son to survive into adulthood, Tsarevich Alexei, did not support Peter's modernization of Russia. He had previously been arrested and died in prison shortly thereafter. Near the end of his life, Peter managed to alter the succession tradition of male heirs, allowing him to choose his heir. Power then passed into the hands of his second wife, Empress Catherine, who ruled until her death in 1727. Peter II, the son of Tsarevich Alexei, took the throne but died in 1730, ending the Romanov male line. He was succeeded by Anna I, daughter of Peter the Great's half-brother and co-ruler, Ivan V. Before she died in 1740 the empress declared that her grandnephew, Ivan VI, should succeed her. This was an attempt to secure the line of her father, while excluding descendants of Peter the Great from inheriting the throne. Ivan VI was only a one-year-old infant at the time of his succession to the throne, and his parents, Grand Duchess Anna Leopoldovna and Duke Anthony Ulrich of Brunswick, the ruling regent, were detested for their German counselors and relations. As a consequence, shortly after Empress Anna's death, Elizabeth Petrovna, a legitimized daughter of Peter I, managed to gain the favor of the populace and dethroned Ivan VI in a coup d'état, supported by the