All this because she wasn’t getting enough sympathy from her pals.

Biurny Peguero Gonzalez concocted an elaborate story in 2005, claiming that a Bronx man held her at knifepoint as he and two pals raped her on a deserted street.

She lied to friends, doctors, police, prosecutors, grand jurors and jurors about how William McCaffrey and his friends kidnapped her from her parked car when she was blind drunk and attacked her.

But Gonzalez, now 27, had an astounding “facile ability to look one in the eye and offer up a falsehood,” Manhattan prosecutors wrote in sensational papers released today.

Based almost solely on her testimony, McCaffrey was given 20 years in prison and spent the past three years serving time.

But Gonzalez lied — driven by anger at her friends for not believing what likely really happened that night. She had gotten into a car with McCaffrey and his two friends and kissed him — but grew afraid after she blew off his further advances and he erupted in anger, cursing at her and threatening to dump her out on the street, the papers said.

Yesterday, she turned herself in to Manhattan prosecutors and pleaded guilty to two counts of perjury for lying about the rape.

But according to the prosecutors’ documents, the reason she lied in the first place was because of her friends’ reaction to her tale of drunken abduction.

When the men drove her back to her friends, Gonzalez’s pals started arguing with her about her leaving them. The women all started slapping one another, the papers said.

Gonzalez was both furious at her pals and still hysterical about the incident in the car, according to the document.

At one point, when one of her friends asked whether she had been raped, “she replied that she had, because she wanted the group to feel badly.

“She specifically said that she was upset with [one friend] after the fight because [the friend] was angry and did not seem to care about her,” the papers said.

“[Gonzalez] said that once she stated she had been raped and more people became involved, the lie became too big for her to back out of.”

It didn’t help that McCaffrey — who has a long rap sheet of drug and violence arrests — claimed that absolutely nothing happened in the car, because an argument did erupt, although there wasn’t a sexual assault or rape, law-enforcement sources said.

In an interview with The Post today, McCaffrey — who was released from prison Sept. 1 — again denied there was any fight between him and Gonzalez in the car.

“That’s a total lie,” he said. “I’m just happy to be home,” said the 33-year-old construction worker, who was visiting his girlfriend.

He praised Gonzalez, saying, “It was courageous of her to come forward and finally tell the truth.”

But he said he believed that she came forward only because DNA evidence was about to clear him anyway.

Gonzalez, now married and with a new baby, declined comment today outside Manhattan Criminal Court, where she entered her guilty plea.

She confessed her sin to a Catholic priest in the spring, and the clergyman persuaded her to talk to the lawyer, who then went to the Manhattan District Attorney’s Office.

Gonzalez faces two to seven years on each count: lying to a grand jury and then again during the trial.

Additional reporting by Carolyn Salazar