In 1992, as Kim Il-sung's health began deteriorating, Kim Jong-il slowly began taking over various state tasks. Kim Il-sung died of a heart attack in 1994, with Kim Jong-il declaring a three-year period of national mourning before officially announcing his position as the new leader afterwards.