Definitions of turn the tables:

  • verb:   cause a complete reversal of the circumstances