Answer
A historian by profession, Guðni Th. Jóhannesson served as a professor of history at the University of Iceland for over three decades before becoming the 6th President of Iceland in 2016. A renowned scholar specializing in modern Icelandic history, he authored several books and articles on various aspects of the country's history and politics.