The meaning of the phrase ‘((To) catch a tartar' is to attack someone who proves to be much stronger than was expected.
1. By attacking India, Pakistan caught a tartar.
2. If you try to go against the order of your boss, you will catch a tartar.
3. It is not wise to catch a tartar by opposing him in the election.