Peter Gay, a German-born historian whose sense of intellectual adventure led him to write groundbreaking books on the Enlightenment, the Victorian middle classes, Sigmund Freud, Weimar culture and the cultural situation of Jews in Germany, died on Tuesday at his home in Manhattan. He was 91.

His death was confirmed by his stepdaughter Elizabeth Glazer.

Mr. Gay, a refugee from Nazi Germany, devoted his career to exploring the social history of ideas, a quest that took him far from his original area of specialization, Voltaire and the Enlightenment. “He is one of the major American historians of European thought, period,” said Sander L. Gilman, a cultural and literary historian at Emory University.

It was his work on the 18th century that sealed Mr. Gay’s reputation as one of the pre-eminent historians of his generation. “Voltaire’s Politics,” published in 1959, was followed by “The Enlightenment: An Interpretation,” a monumental two-part study whose first volume, subtitled “The Rise of Modern Paganism,” won the National Book Award in 1967. The second volume, subtitled “The Science of Freedom,” was published in 1969.

“That is the last great work to provide a synthetic account of the philosophes and their world,” said Margaret Jacob, a professor of history at U.C.L.A. “It was canonical. He just had an encyclopedic grasp of the subject.”