Answer
Carl Gustaf Emil Mannerheim succeeded Risto Ryti as president, assuming office on August 4, 1944, during the Continuation War. A renowned military leader and former commander-in-chief of the Finnish Defense Forces, Mannerheim played a crucial role in Finland's efforts to maintain its independence and territorial integrity amid challenging wartime circumstances.