turn the tables

verb

1.
cause a complete reversal of the circumstances