Who killed Lila Stangard (Megan West)? The answer was finally revealed in the special two-hour Season 1 finale of “How to Get Away With Murder.”

The finale of the freshman ABC series kicked off with Wes (Alfred Enoch) certain that his girlfriend, Rebecca (Katie Findlay), was responsible for Lila’s death. Although he previously thought Annalise’s (Viola Davis) husband, Sam (Tom Verica), was the murderer, a new development had him doubting everything -- Rudy.

Rudy was the student who previously lived in Wes’ apartment. Wes never met Rudy, but last week he discovered that the former student was locked up in an insane asylum shortly after Lila’s murder. With Laurel (Karla Souza) at his side, Wes paid a visit to Rudy. He was mentally unstable, but said one thing when they showed him a picture of Rebecca: “Wet.”

Wes immediately suspected that Rebecca had lied to them and was responsible for Lila’s murder. However, Laurel told him not to jump to any conclusions. She begged him not to confront her, and he obliged. But that didn’t stop him from pulling up old police records related to the case.

As Wes pored over the old files, “How to Get Away with Murder” cut to a flashback from the night that Lila died five months earlier. That afternoon, Lila ended her friendship with Rebecca. She told her she was done dealing drugs and was going to get back together with Griffin (Lenny Platt). Rebecca told Lila to reconsider, arguing that Griffin was “bad” for her because of his controlling ways. However, Lila was done. She told Rebecca it was her fault that everything in her life got turned upside down, and that she used her to “escape stupid life.”

“I was bored and confused,” Lila yelled at Rebecca before leaving the apartment. “I’m done acting like some trashed-out druggie w----. That may be fine for you, but my parents raised me better.”

Rebecca told Lila not to call her ever again, but that wasn’t good enough: She wanted revenge. Later that night, she ended up at Griffin’s fraternity house. The pair did some drugs before heading upstairs to his room to hook up -- when Rebecca texted Lila from his phone.

Needless to say, Lila was shocked to find Griffin having sex with Rebecca. But the situation got worse when Rebecca taunted her. “Still think he’s worth it?” she asked Lila.

Lila attacked Rebecca, and Griffin had to step in to stop her. He managed to get her to leave, but not before Lila told the duo she didn’t want to see either of them again. Shortly afterward, Rebecca showed up at Lila’s sorority house. She called Lila from the burner phone and tried to talk to her, but Lila wouldn’t pick up. When a couple of sorority girls left the gate open, Rebecca took advantage of the opportunity and entered the house to face Lila.

Meanwhile, in the present day, the rest of the students figured out what Wes and Laurel were being sneaky about. They all confronted Rebecca, demanding she tell them the truth about that night. She denied everything, but Rudy poked some holes in her story. They know she called the police on her former neighbor the same night that Lila died. She claimed it was because he was having a mental breakdown, but they believed she drugged him to make him an “unreliable witness” after he caught her coming home “wet.”

Rebecca wasn’t willing to play along -- despite Michaela’s (Aja Naomi King) threat to “personally destroy” her. Instead, she threw a curveball. She told the group she found the campus cop that saw them the night of Sam’s murder. He was fired shortly after Sam’s murder and moved to Delaware to work as a security guard at a supermarket. “Don’t make me call him,” Rebecca warned them.

The group didn’t know what to do, so they called Annalise. She found Rebecca in the bathroom, tied up with duct tape across her mouth. They brought Rebecca back to Annalise’s office, but still couldn’t get her to reveal the truth. Annalise decided her students had to give Rebecca “her day in court.” However, none of them could provide concrete evidence that Rebecca was responsible for Lila’s death.

Meanwhile, the flashbacks to the night of the murder continued. At 7 p.m., Sam was in New Haven to give a lecture. He received a call from Lila, who revealed that his “plan” for her to have sex with Griffin fell through. She was trying to place the pregnancy on him, but Griffin refused to go against God’s plan. Sam tried to talk her down, but Lila was unstable. She warned him that she was going to tell Annalise about their affair and hung up on him.

Lila showed up at Annalise’s doorstep, but Annalise was on the phone with Sam. Instead, Bonnie answered the door. She refused to let Lila talk to Annalise, and warned her to go home.

“I guarantee you’re going to regret this,” Bonnie told Lila.

Lila ended up on the roof of her sorority house. Her phone call to Sam made him return to town, and she convinced him to come over by making it sound like she was ready to commit suicide. Sam promised he’d come over, but Griffin showed up before he did. Lila hid from Griffin, but came back out when Sam arrived.

She begged him to stop trying to change her mind about getting rid of the baby.

“You said you loved me. Over and over,” she told him in between tears. “But you don’t, do you? You love her.”

But Sam denied it. “No, I don’t,” he said. “I mean it. I don’t love her anymore. I love you.”

In the present day, Annalise sent Wes to get the truth out of Rebecca, who was tied up in the basement. Rebecca finally gave all the details about that night. She did give Rudy PCP -- as well as something called Purple X. He saw her return to her apartment soaking wet, and had heard her fight with Lila through the thin walls. She had to silence him, but not because she was guilty. According to her, she found Lila in the water tank when she went to beg her for forgiveness. When she heard voices, she was forced to jump in the water tank with the body.

Wes relayed the story to the rest of the group, and Annalise said they had to let her go. However, Rebecca wasn’t in the basement when Annalise went to talk her into staying quiet. “Who let her go?” she demanded. Nobody admitted having freed her.

The Season 1 finale of “How to Get Away with Murder” concluded with the unmasking of the killer. Sam looked like he was going to strangle Lila, but instead left to go tell Annalise about the affair. When he got off the roof, he placed a call to a mysterious person. “You owe me,” he said.

Shortly afterward, someone strangled Lila. When the camera cut to the culprit’s face, it was revealed to be Frank (Charlie Weber). He dumped the body in the water tank.

But that wasn’t the only shocker. Both Frank and Annalise knew Rebecca didn’t escape through the basement. She was dead, but neither of them took the credit for killing her.