Midnight Cowboy is a 1969 American buddy drama film. Based on the 1965 novel of the same name by James Leo Herlihy, the film was written by Waldo Salt, directed by John Schlesinger, and stars Jon Voight and Dustin Hoffman, with notable smaller roles being filled by Sylvia Miles, John McGiver, Brenda Vaccaro, Bob Balaban, Jennifer Salt, and Barnard Hughes. Set in New York City, Midnight Cowboy depicts the unlikely friendship between two hustlers: naive prostitute Joe Buck (Voight), and ailing con man "Ratso" Rizzo (Hoffman).
The film won three Academy Awards: Best Picture, Best Director and Best Adapted Screenplay. Midnight Cowboy is the only X-rated film ever to win Best Picture (though such a classification no longer exists). It has since been placed 36th on the American Film Institute's list of the 100 greatest American films of all time, and 43rd on its 2007 updated version.
In 1994, Midnight Cowboy was deemed "culturally, historically or aesthetically significant" by the Library of Congress and selected for preservation in the United States National Film Registry.