Tsar Fyodor I was the second son of Ivan the Terrible, the first tsar of Russia, who founded the Tsardom of Russia in 1547 as the successor of the Grand Duchy of Moscow. Fyodor's elder brother, Tsarevich Ivan Ivanovich, was the heir apparent; Fyodor was never considered a serious candidate for the Russian throne. Tsarevich Ivan was accidentally killed in anger by their father on 19 November 1581, however, making Fyodor the new heir apparent. After Tsar Ivan's death on 28 March 1584, Fyodor was crowned as the tsar three days later. The pious Fyodor took little interest in politics, ruling through Boris Godunov (his closest advisor, a boyar and the brother of Fyodor's wife, Irina Godunova). Fyodor produced one child: a daughter, Feodosia, who died at age two. When Fyodor died in January 1598, the Rurik dynasty which had ruled Russia since the ninth century ended. Godunov, a "de facto" regent for Fyodor, was elected his successor by the Zemsky Sobor.