Ellery Queen is both a fictional character and a pseudonym used by two American cousins from Brooklyn, New York—Daniel Nathan, alias Frederic Dannay (October 20, 1905 – September 3, 1982) and Emanuel Benjamin Lepofsky, alias Manfred Bennington Lee (January 11, 1905 – April 3, 1971)—to write, edit, and anthologize detective fiction. The fictional Ellery Queen created by Dannay and Lee is a mystery writer and amateur detective who helps his father, a New York City police inspector, solve baffling murders.
Ellery Queen was created in 1928 when Dannay and Lee entered a writing contest sponsored by McClure's Magazine for the best first mystery novel. They decided to use as their collective pseudonym the same name that they had given their detective. Inspired by the formula and style of the Philo Vance novels by S. S. Van Dine, their entry won the contest, but before it could be published, the magazine closed. Undeterred, the cousins took their novel to other publishers, and The Roman Hat Mystery was published in 1929.
The Roman Hat Mystery established a reliable template: a geographic formula title (The Dutch Shoe Mystery, The Egyptian Cross Mystery, etc.); an unusual crime; a complex series of clues and red herrings; multiple misdirected solutions before the final truth is revealed, and a cast of supporting characters including Ellery's father, Inspector Richard Queen, and his irascible assistant, Sergeant Velie. What became the most famous part of the early Ellery Queen books was the "Challenge to the Reader." This was a single page near the end of the book declaring that the reader had seen all the same clues Ellery had, and that only one solution was possible. According to novelist/critic Julian Symons, "The rare distinction of the books is that this claim is accurate. There are problems in deduction that do really permit of only one answer, and there are few crime stories indeed of which this can be said."
In a successful series of novels and short stories that covered 42 years, "Ellery Queen" served as a joint pseudonym for the cousins Dannay and Lee, as well as the name of the primary detective-hero they created. During the 1930s and much of the 1940s, that detective-hero was possibly the best known American fictional detective. Movies, radio shows, and television shows were based on Dannay and Lee's works.
The two writers, particularly Dannay, were also responsible for co-founding and directing Ellery Queen's Mystery Magazine, generally considered one of the most influential English-language crime fiction magazines of the last sixty-five years. They were also prominent historians in the field, editing numerous collections and anthologies of short stories such as The Misadventures of Sherlock Holmes. Their 994-page anthology for The Modern Library, 101 Years' Entertainment: The Great Detective Stories, 1841–1941, was a landmark work that remained in print for many years. Under their collective pseudonym, the cousins were given the Grand Master Award for achievements in the field of the mystery story by the Mystery Writers of America in 1961.
Helene Hanff, best known for her book 84 Charing Cross Road, was a scripter for the television series version of The Adventures of Ellery Queen (1950–1952), which began on the DuMont Television Network but soon moved to ABC. Shortly after the series began, Richard Hart, who played Queen, died and was replaced in the lead role by Lee Bowman. The series returned to DuMont in 1954 with Hugh Marlowe in the title role. George Nader played Queen in The Further Adventures of Ellery Queen (1958–1959), but he was replaced with Lee Philips in the final episodes.
Peter Lawford starred in a television movie, Ellery Queen: Don't Look Behind You, in 1971. Veteran actor Harry Morgan played Inspector Queen, but in this film he was described as Ellery's uncle (perhaps to account for the fact that Morgan was only eight years Lawford's senior, or for Lawford's English accent). This film is loosely based on Cat of Many Tails.

In 2011, the Leverage episode "The 10 Li'l Grifters Job", Timothy Hutton's character Nate Ford appears at a costumed murder mystery party as Ellery Queen, in a homage to the actor's late father, Jim.