Dave Barry, who wrote the beloved Wizard of Oz, died Saturday, the Warner Bros. studio said.

The author of several books including The Wizard of the Oz, Barry had been hospitalized with a heart condition, a company spokesman said.

Barry died Saturday at his home in Chicago.

“Dave’s work touched people across generations,” Warner Bros., the studio, said in a statement.

“He was a pioneer of the feature film, television, animation and stage, and we are deeply saddened to learn of his passing.”

The film and television credits include The Wizard, Oz and The Lion King.

Barry also wrote the screenplay for The Dark Knight Returns.

Barry’s books were adapted for film and TV, and he wrote several children’s books, including The Wonderful World of Little Green Men and The Adventures of the Peanuts Parlor Guards.

In addition to writing, Barry produced television shows such as The Wonder Years, which ran for 10 seasons and was nominated for a Peabody Award.

His daughter, Jessica Barry, said her father was a longtime fan of television and books.

“It was so great for him to see a great show and to see his daughter grow up in that show,” she said.

“I think it’s going to be a big part of his legacy, and hopefully it will inspire kids to follow in his footsteps.”

A man dressed as the Wizard of Pisa and other figures in a wizard costume is seen in the background during a celebration for the 70th anniversary of the Wizarding World of Harry Potter at the Palace of Piazza della Repubblica in Rome, Italy, April 16, 2020.

REUTERS/Alessandro Bianchi/Files