In 1983, Mr. Lewis married SanDee Pitnick, and in 1992 their daughter, Danielle Sara, was born. Besides his wife and daughter, survivors include his sons Christopher, Scott, Gary and Anthony, and several grandchildren.

Although the Academy of Motion Picture Arts and Sciences never honored Mr. Lewis for his film work, he received the Jean Hersholt Humanitarian Award for his charitable activity in 2009. His many other honors included two stars on the Hollywood Walk of Fame — one for his movie work, the other for television — and an induction into the Légion d’Honneur, awarded by the French government in 2006.

In 2015, the Library of Congress announced that it had acquired Mr. Lewis’s personal archives. In a statement, he said, “Knowing that the Library of Congress was interested in acquiring my life’s work was one of the biggest thrills of my life.”

Mr. Lewis was officially recognized as a “towering figure in cinema” at the 2013 Cannes Film Festival. The festival’s tribute to him included the screening of a preliminary cut of “Max Rose,” Mr. Lewis’s first movie in almost 20 years, in which he starred as a recently widowed jazz pianist in search of answers about his past. The film did not have its United States premiere until 2016, when it was shown as part of a Lewis tribute at the Museum of Modern Art. Also in 2016, he appeared briefly as the father of Nicolas Cage’s character in the crime drama “The Trust.”

In 2012, Mr. Lewis directed a stage musical in Nashville based on “The Nutty Professor.” The show, with a score by Marvin Hamlisch and book and lyrics by Rupert Holmes, never made it to Broadway, but Mr. Lewis relished the challenge of directing for the stage, a first for him.

“There’s something about the risk, the courage that it takes to face the risk,” he told The New York Times. “I’m not going to get greatness unless I have to go at it with fear and uncertainty.’’