A Dallas man who stalked a teenage neighbor and tattooed her name all over his body was sentenced to 20 years in prison Thursday for shooting the girl’s father.

Gabriel Ramirez, 23, pleaded guilty to stalking and aggravated assault after breaking into 17-year-old Christina Trejo’s home in South Dallas and shooting her father three times last summer.

“I tried to open the door, but it was pushed into me,” the teen’s father, Antonio Trejo, testified. “Right away … [Ramirez] started firing.”

Trejo survived the attack but needed multiple surgeries to repair his punctured liver, stomach and lung.

After the shooting, Ramirez fled back to his home, but the teen’s parents identified him as the shooter and he was arrested less than an hour later. The girl took cover in a back bedroom to call 911.

Prosecutors say Ramirez was never in a relationship with the teen but tried repeatedly to make a connection, including sending her flowers for her birthday.

He also got 11 tattoos of her name across his chest, neck and arms — some of which were decorated with hearts and included her birth date and address.

My friends “told me the most romantic thing someone can do is tattoo their name on them,” Ramirez explained during testimony Thursday morning.

Ramirez blamed his infatuation with the teen on the drugs he was using: cocaine, heroin, marijuana laced with PCP, Xanax and methamphetamines. But prosecutors say he got some of the tattoos in jail after the shooting and sent the teen and her parents multiple letters from behind bars.

“I’ll do anything for u cuzz I love u,” Ramirez wrote in one of the three letters he sent to the teen, “but really wen I get out and I see ur with someone else Imma act a fool no matter how it is cuzz ur my girl.”

The teen chose not to testify and kept her head down throughout the trial, holding the hands of those next to her when Ramirez took the stand.

Ramirez received 10 years for stalking and the maximum sentence of 20 years for aggravated assault, which he will serve concurrently. He will be eligible for parole in nine years.