John Morris, a composer who had a long list of movie, theater and television credits but was best known for a long association with Mel Brooks that earned him Academy Award nominations for “Blazing Saddles” and “The Elephant Man,” died on Thursday at his home in Red Hook, N.Y. He was 91.

His daughter, Bronwen Morris, said the cause was a respiratory infection.

Mr. Morris, a genial son of British parents, and Mr. Brooks, a boisterous comedy director from Brooklyn, had worked on two short-lived Broadway musicals (“Shinbone Alley,” in 1957, and “All-American,” in 1962), when Mr. Brooks asked him to write the film score for “The Producers” (1967). It was Mr. Morris’s first movie score — the music that accompanies a film — and Mr. Brooks’s first feature.

Over the next 24 years, they would collaborate on 10 more films.

“He was my emotional right arm,” Mr. Brooks said in a telephone interview. “Music tells you what to feel and he knew what I wanted you to feel. He composed it and made it happen.”