1944 and 1948 Dulles served as the chief foreign policy adviser to Thomas E. Dewey, the Republican presidential nominee in 1944 and 1948.