Mikhail I is elected unanimously as Tsar by a national assembly, beginning the Romanov dynasty of Imperial Russia .