Jacques Barzun, the distinguished historian, essayist, cultural gadfly and educator who helped establish the modern discipline of cultural history and came to see the West as sliding toward decadence, died Thursday night in San Antonio, where he lived. He was 104.

His death was announced by Arthur Krystal, Mr. Barzun’s friend and editor.

Mr. Barzun was a man of boundless curiosity, monumental productivity and manifold interests, encompassing both Berlioz and baseball. It was a life of the mind first cultivated more than a century ago in a childhood home outside Paris that became an avant-garde salon.

Mr. Barzun stood beside Sidney Hook, Daniel Bell and Lionel Trilling as among the mid-20th century’s most wide-ranging scholars, all of whom tried to reconcile the achievements of European culture and philosophy with the demands and tastes of American intellectual and cultural life.

He wrote dozens of books across many decades, demonstrating that old age did not necessarily mean intellectual decline. He published his most ambitious and encyclopedic book at the age of 92 (and credited his productivity in part to chronic insomnia). That work, “From Dawn to Decadence,” is an 877-page survey of 500 years of Western culture in which he argued that Western civilization itself had entered a period of decline.