(CNN) Ariana Grande returned Sunday to Manchester to honor the lives of those lost there.

The singer and some of her famous friends held a benefit concert in the English city to benefit the victims of a terrorist attack that took place following her performance there nearly two weeks ago.

Grande appeared emotional as she performed some of her hits, including "Break Free."

"I love you Manchester," she yelled to the crowd.

Grande wore a white sweatshirt with "One Love Manchester" written on it. She also performed "Better Days" with Victoria Monét and sang "Where is the Love" with the Black Eyed Peas.

There were tears as Grande performed her song"My Everything" with the Parrs Wood High School Choir. The choir's cover of the song quickly went viral after they performed it in tribute to the Manchester bombing victims.

Grande thanked those in attendance.

"I want to thank you so much for coming together and being so loving and strong," she said. "I love you guys so much and I think that the kind of love and unity that you're displaying is the medicine the world really needs right now."

She also paid tribute to 15-year-old fan Olivia Campbell who lost her life in the attack, and she recounted a conversation she had with the girl's mother.

"She told me Olivia would have wanted to hear the hits," Grande said, before launching into her popular song "Side to Side."

What an event! #manchester #onelovemanchester A post shared by Lawrence Jones MBE (@lawrencejonesmbe) on Jun 4, 2017 at 11:42am PDT

The crowd went wild when Justin Bieber showed up, with a guitar, to perform an acoustic version of his song "Love Yourself."

"What an amazing thing we're doing tonight, would you agree," Bieber said. "Would you agree that love always wins?"

The singer appeared to get emotional as he told those gathered that "God loves you so, so much."

Grande broke down in tears as she ended the show with a cover of "Somewhere Over The Rainbow."

Bieber and Grande's manager, Scooter Braun, noted that the singer performed her first concert in Manchester exactly two years before. He thanked everyone for attending despite a terror attack in London the day before.

"Manchester, your bravery is our hope," Braun said. "As unfortunately we saw yesterday, evil will test us, it will show its face again. But because of you we can now represent through this as a world wide community that we will be ready, we will be fearless we will be great and we will honor our children."

#Manchester #onelove #love #bestrong A post shared by Paul Brierley (@biggles1508) on Jun 4, 2017 at 12:35pm PDT

Braun said a TV broadcasting the concert was set up at Royal Manchester Children's Hospital, where some victims were still recovering.

Marcus Mumford of Mumford and sons opened the show with "Timshel," followed by the Manchester pop group Take That.

Singer Robbie Williams then took to the stage to lead the audience in a rousing rendition of his Manchester tribute song, "Strong."

Pharrell Williams praised the people of Manchester for their courage.

"I don't feel or smell or hear or see any fear in this building. All we feel here tonight is love, resilience, positivity," Williams said before he launched into his hit song, "Happy" with an assist from Miley Cyrus.

More than 50,000 crowded into Emirates Old Trafford Cricket Ground to watch Grande headline the benefit.

Some concertgoers clutched signs reading "For our angels" in tribute to the 22 people who were killed and dozens more injured when a suicide bomber set off a blast after Grande's concert at Manchester Arena on May 22.

The sold-out "One Love" benefit follows another deadly attack that rocked London late Saturday when three men drove a van into a crowd before stabbing people in nearby bars and restaurants.

Seven people were killed and 48 were injured in that attack.

Officials tightened security for Sunday's concert.

On Friday, Grande visited some of her injured fans at the Royal Manchester Children's Hospital.

She shared some photos of the visits on her social media account.

💛 A post shared by Ariana Grande (@arianagrande) on Jun 2, 2017 at 4:48pm PDT

i love you A post shared by Ariana Grande (@arianagrande) on Jun 3, 2017 at 9:21am PDT

The superstar brought each a sunflower and a teddy bear, according to Lauren Thorpe, whose eight-year-old daughter, Lily, suffered a shrapnel wound in her back as a result of the bombing.

The Guardian reported that Lily was released from the hospital in time to attend the benefit.

American fans were able to watch the concert on the cable channel Freeform, as well as Grande's YouTube and Facebook pages.

All proceeds from the event will go toward the "We Love Manchester Emergency Fund," in partnership with the British Red Cross and Manchester City Council.