Andrew Bergman (born February 20, 1945) is an American screenwriter, film director, and novelist. New York magazine in 1985 dubbed him "The Unknown King of Comedy". His best known films include Blazing Saddles, The In-Laws, and The Freshman.
His dissertation, a study of Depression-era Hollywood films, was published in 1971 by NYU Press under the title We're in the Money: Depression America and Its Films. He wrote James Cagney: The Pictorial Treasury of Film Stars.
Bergman broke into the film industry by writing the original screenplay (titled Tex X) that served as the basis for Mel Brooks's classic Blazing Saddles (1974), and was among the co-writers who adapted it into its final state.
He wrote a gangster film Rhapsody in Crime that was never made. Warner Bros approached him to write a sequel to Freebie and the Bean with Peter Falk and Alan Arkin. Instead Bergman came up with The In-Laws (1979).
The In Laws was a success so Bergman could direct his next script, So Fine (1981) starring Ryan O'Neal. It was a box office disappointment.