Pull a rabbit out of the hat
Meaning
Produce something surprising or seemingly magical.
Usage
Used for unexpected solutions.
Origin & History
Origins and dates here are approximate summaries. Many idioms have disputed or unknown origins, and not every date has been checked against a historical dictionary, so treat specific dates and stories as a starting point rather than a citation.
Magician's trick revealing a rabbit from an empty hat.
Used in illusionist publicity and now figuratively everywhere.