Zachery Ty Bryan’s former girlfriend has been granted a five-year restraining order against him after the “Home Improvement” star allegedly “punched her in the head.”

The victim first contacted police after the actor, 44, allegedly hit her in the right temple of her head on July 3 after she playfully bit his nipple, per court documents obtained by TMZ.

Days later, the woman told law enforcement that she was scared for her safety when she and Bryan got into a verbal altercation.

She claimed he threatened to end her life and told her to, “Shut the f–k up or I’m gonna shut you up.”

Also during the verbal incident, she claimed to police that Bryan took their dog, locked himself in a room and punched the door, splitting it from its frame.

During the pair’s relationship — which she noted o

See Full Page