a taste of (one's) own medicine

a taste of (one's) own medicine

The same unpleasant experience or treatment that one has given to others. Doug is a bully—of course he won't like it when his victims fight back and give him a taste of his own medicine. This team likes to play rough, so let's go out there and give them a taste of their own medicine!
See also: medicine, of, own, taste