Answer
Douglas Hyde, Ireland's first president, held office from 1938 to 1945, primarily serving a ceremonial role during the Second World War and the establishment of the Republic of Ireland. Seán T. O'Kelly succeeded him in 1945 and served until 1959, playing a more active role in promoting Ireland's cultural identity and international relations.