turn the tables
turn the tables {v. phr.}
To make something happen just the opposite of how it is supposed to happen.
The boys turned the tables on John when they took his squirt gun away and squirted him.
Categories:
Source: A Dictionary of American Idioms