Language:
Free Online Dictionary|3Dict

以其人之道,还治其人之身

Source : CEDICT

to use an opponent's own methods to obtain retribution (idiom, from Song dynasty neo-Confucianist Zhu Xi 朱熹); to get revenge by playing sb back at his own game/to give sb a taste of his own medicine