Give (someone) a black eye

To hit someone near the eye so that it becomes dark, to harm someone’s reputation.

I bumped into the door and it gave me a black eye.