Born into a Baptist family in upstate New York, Hayes earned history degree from Columbia University, where he taught for the rest of his academic career. His specialty was moden European history and he was a pioneer in the study of European nationalism. He became Catholic in 1904. A founding member of the American Catholic Historical Association and a frequent writer for Commonweal magazine, he was U.S. ambassador to Spain from 1942 to 1945 and was elected president of the American Historical Association in the latter year.