The texts pinged back and forth at a dizzying rate, the young couple exchanging tens of thousands of messages during their 18-month relationship.

But on May 20, a few hours before he was set to graduate from Boston College, Alexander Urtula stopped responding. The texts Inyoung You sent to her boyfriend became increasingly desperate. She swore at him, she pleaded, she typed in all caps. No reply. She tracked his location to a tall parking structure in Boston’s Roxbury neighborhood. She was there when he leaped to his death from the top floor and she did nothing to stop him, authorities said.

In the months that followed, investigators would accuse You of driving Urtula to suicide, and they would use the couple’s massive cache of text messages as proof, alleging the conversations revealed You’s near-constant physical, verbal and psychological abuse.

This week, as You pleaded not guilty to involuntary manslaughter, both the prosecution and the defense released texts from the trove, claiming each set of messages bolstered their respective case. It marked the first time the public was able to see how the couple interacted in private, and the messages revealed the final moments of what both sides agree was a toxic, tumultuous relationship.

The case of the 21-year-old You, a former Boston College student, echoes the highly publicized 2017 trial of Michelle Carter, who was convicted of involuntary manslaughter after encouraging her boyfriend to kill himself.

You, prosecutors said, had “complete and total control” over Urtula, who was 22. The power dynamic played out over more than 75,000 text messages, at least 47,000 of which came from You — a stream of unrelenting abuse, they said.

[If you or someone you know needs help, call the National Suicide Prevention Lifeline at 1-800-273-TALK (8255). You can also text a crisis counselor by messaging 741741.]

On Tuesday, the public relations firm representing You released to the Boston Globe dozens of texts the couple exchanged in the hours leading up to Urtula’s death. In them, she repeatedly and urgently implored him not to hurt himself.

“IF U EVER LOVED ME STOP,” she wrote in one message. “IF YOU WANNA SHOW ME U LOVE ME STOP.”

In another, she told him she was on her way to the parking garage, writing, “Please baby please stop i love you.”

But in a second batch of texts, released by prosecutors in court Friday, You apparently told Urtula he should “DIE IN HELL” and threatened to take her own life if he didn’t — a tactic she repeatedly used to manipulate him during the 18 months they dated, alleged the Suffolk County district attorney’s office.

She isolated him from family and friends, prosecutors said, demanding that he cut off all communications with his Boston College acquaintances and threatening self-harm if he wavered.

Two days before Urtula’s death, You wrote to him with a familiar threat: “u wanna make me livid again? u want me to slash my throat? is that what u want?”

In that same message, she told him she would “TAKE A VIDEO SAYING IT WAS BECAUSE OF YOU” that she killed herself.

“Alex felt trapped, like he had no option but to stay with her because her life was literally in his hands,” Caitlin Grasso, an assistant district attorney, told the court, quoting a witness, according to CNN.

In his responses to her, prosecutors said, Urtula “ceded his autonomy” to You “as a condition of their relationship.” They discussed how Urtula was You’s “slave.” In one message, he told her, “you own me...all of me...only you...you have complete control of me emotionally and physically...and you dictate my happiness.”

Her messages were often filled with brutal, explicit and specific violence.

In one, she told him, “do everyone a favor and go f---ing kill yourself,” calling him “WORTHLESS.” In another, she wrote, “I WANT TO BASH YOUR HEAD AGAINST THE WALL” and told him to go smash his “HEAD ON THE SINK REPEATEDLY.”

In his personal journal, two months before his death, Urtula wrote that You “attacks my self-worth.”

In court on Friday, the clerk sought an end to the back-and-forth disclosures of texts, barring You’s attorney, Steven Kim, from making public any more messages, the Globe reported. Kim argued that the releases were necessary because prosecutors were “cherry-picking” texts favorable to their arguments.

“Never in my career have I seen more unjust and callous behavior from a DA in what I can only conclude is the cheap pursuit of headlines,” Kim said in a statement to The Washington Post, accusing prosecutors of branding “an emotionally fragile young woman a monster to the entire world.”

“When the facts come out it will be clear,” Kim continued, “these were two emotionally needy young adults whose relationship had become a toxic blend of need, anger, fear and love.”

He said You is innocent and that “no one can ever know to a moral certainty why someone decides to take their own life.”

“We should be looking for better ways to support young people in these situations instead of prosecuting them,” Kim said.

In the Carter case, she was 17 when Conrad Roy III killed himself in 2014. In text messages, she urged him to go through with it. Carter was sentenced to 15 months in jail, and in July her lawyers asked the Supreme Court to vacate her conviction, arguing her messages were protected under her First Amendment right to free speech.

Indeed, said Suffolk County District Attorney Rachael Rollins, the two cases have similar basic facts — they also both occurred in Massachusetts — but there are some important distinctions.

Carter and Roy had limited physical contact, Rollins said at a news conference last month.

“We have, quite frankly I would say, the opposite of that,” she said. “We have a barrage, a complete and utter attack on this man’s very will and conscience and psyche by an individual to the tune of 47,000 messages.”

If You is convicted, she could face up to 20 years in prison.

Read more: