Following these developments, all relations were broken between Karabekir and Mustafa Kemal. Retiring temporarily from politics, Karabekir devoted himself to writing his memories of the Turkish War of Independence and the reforms. After Mustafa Kemal (now Atatürk)'s death in 1938, Karabekir's close friend İsmet İnönü rehabilitated him. In 1939, Kâzım Karabekir returned to politics and re-entered parliament as an MP from Istanbul. He was elected speaker of the parliament on 5 August 1946. He died in office at the age of 66 on 26 January 1948 in Ankara following a heart attack. His remains were later relocated to the Turkish State Cemetery in Ankara. Kâzım Karabekir was survived by his wife İclal and three daughters Hayat, Emel, and Timsal. The four-story mansion in the Erenköy quarter of Kadıköy district in Istanbul, where he lived for almost 15 years, was converted into a museum in 2005.