Fracture for fracture, eye for eye, tooth for tooth.
As he has injured the other, so he is to be injured.

Leviticus chapter 24: verse 20