To pull a rabbit out of a hat Verb + object/complement informal
If someone pulls a rabbit out of a hat, they do something unexpected or surprising which solves a problem or helps you to achieve something.
We need someone who can pull a rabbit out of a hat at the moment, otherwise he cannot overcome his severe illness.
You really pulled a rabbit out of a hat by solving this problem with just 15 minutes while I struggled with it for 2 hours.
We had almost given up hope until my parents pulled a rabbit out of the hat by giving us a large amount of money.
To hide the main content of a story within other unimportant information
Used to refer to two politicians who are expected to work well together
The verb "pull" should be conjugated according to its tense. We can use "the" before "hat" instead of "a". The idiom can be also phrased as "pull a rabbit out of one's hat".
You really pulled a rabbit out of the hat when helping me deal with this issue.
When Tom pulled a rabbit out of his hat, I couldn't understand how he answered that hard question.
This idiom refers to the common magic trick of pulling a live rabbit out of a seemingly empty hat.