
Thousands of people packed a stadium in Charlottesville, Virginia for a concert intended to raise money for charity and promote unity in the aftermath of this summer's white nationalist rallies.

Pharrell Williams, before launching into a rendition of his hit song 'Happy', took a knee during his performance in a pointed criticism of President Donald Trump - despite not referencing the president by name.

Williams told the crowd: 'If I want to get on my knees right now for the people of my city, for the people of my state, that's what this flag is for.'

Dave Matthews, whose band got its start in the Virginia college town, hosted the Sunday show, called the 'Concert for Charlottesville'.

Scroll down for video

Pharrell Williams got down on both knees during 'A Concert for Charlottesville,' which was organized to promote unity in the aftermath of white supremacist rallies that rocked the Virginia college town last month

Williams' action and words were a swipe at President Donald Trump, who is feuding with the NFL over how many of its players are staking knees or sitting during the national anthem in protest of him and his policies

Dave Matthews of the Dave Matthews Band organized the concert. He introduced Susan Bro to the assembled crowd. Bro is the mother of Heather Heyer, who died on August 12 in Charlottesville after a driver plowed into a crowd of counter-protesters amid the white nationalist rallies being held in the town

'I'm here in her place to sing with all of you in her place,' Bro told the crowd. 'By raising our voices against hatred, you make Heather's death count'

Thousands descended on the University of Virginia's Scott Stadium for the free concert. Concertgoers were encouraged to donate to a charity benefiting victims of the violence that plagued the city

Ariana Grande performed at the concert. She told the crowd: 'Keep using your voices and making this a safer space for each other'

He thanked the attendees and performers for coming together on short notice and billed the concert as standing for 'music and unity'.

Matthews introduced Susan Bro, the mother of Heather Heyer, 32, who was killed when a driver slammed into a crowd protesting the white nationalists on August 12.

Bro told the crowd the concert was a 'powerful and peaceful' way to come together and turn anger into action and understanding.

'I'm here in her place to sing with all of you in her place,' she said. 'By raising our voices against hatred, you make Heather's death count.'

Chris Martin and Jonny Buckland of Coldplay made a surprise appearance.

Also performing were Justin Timberlake, Ariana Grande, The Roots, Pharrell Williams, Stevie Wonder, Cage the Elephant, Brittany Howard of Alabama Shakes and Chris Stapleton, reports Billboard.

Williams referenced the controversy between the National Football League and President Donald Trump.

Trump is currently criticizing players who take a knee or sit during the national anthem in protest of his presidency.

'I'm in Virginia right now I'm home. Can't nobody tell me what to do,' Williams said, to much applause.

He continued: 'If I want to get on my knees right now, if I want to get on my knees right now for the people of my city, for the people of my state, that's what this flag is for.'

Getting down on both knees, he said: 'And when I think about the potential of this country, the potential of this state, the potential of these people, the potential of this amazing, amazing university, there's only one word that I feel.'

He then sang his hit song, 'Happy'. Williams is from Virginia Beach, Virginia.

Film director Brett Ratner, who filmed the concert, told the Huffington Post: 'I think there’s a synergy and the connection to what’s happening now with football and what’s happening in Charlottesville.

'There’s a reason why it’s all happening, because I think the positivity and the love are becoming viral. People want to make a change.'

Justin Timberlake brought concertgoers back to 2002 when he performed 'Cry Me a River,' among other songs from his more-than-20-years-long career

Making a surprise appearance at the concert were Chris Martin and Jonny Buckland of Coldplay

Ariana Grande also performed a benefit concert in Manchester, England this year after a terrorist attack occurred at her originally scheduled concert in the city

Grande is pictured with friends praying backstage before she goes on to perform at the free concert

Fans hold up their cell phones with the lights on during the concert in Charlottesville, Virginia

Justin Timberlake, who took the crowd all the way back to 2002 when he sang 'Cry Me A River', told concertgoers that he was going to be proud to tell his newborn son about the unifying nature of the concert.

He also said 'love trumps hate,' the Huffington Post reports. He also sang a cover version of 'A Change Is Gonna Come'.

During her set, Ariana Grande said: 'Keep using your voices and making this a safer space for each other,' reports the Daily Progress.

Tickets to the concert were free, but concertgoers were asked to donate to a charity fund for victims of the white nationalist rallies in August.

The concert was held at the University of Virginia's Scott Stadium.

Some members of the Oakland Raiders sit on the bench during the national anthem on Sunday night .The whole team and the coaches were in solidarity, either sitting or linking arms during the singing

Washington Redskins tight end Niles Paul (84) and linebacker Ryan Anderson (52) and Washington Redskins linebacker Chris Carter (55) kneel with teammates during the playing of the national anthem. Every member of the team and the coaches either took a knee or linked arms during the singing

Major Thompson completed his last flight as pilot was introduced by Trump to reporters. Trump is pictured greeting Lynel Thompson, wife of the Marine pilot, and their two children on Sunday, the same day as the concert

In August, a rally was held by a group called Unite the Right that protested the removal of a statue of Confederate General Robert E. Lee at Charlottesville's Emancipation Park.

The planned removal was a focal point for a number of white supremacist protests since the council voted to remove the structure in April.

Counter-protesters showed up in droves to demonstrate against white supremacy and Nazism.

Consequent clashes resulted in dozens of injuries and Heyer's death.

She died after James Alex Fields Jr, of Maumee, Ohio drove his Dodge Challenger into a crowd.

President Trump admonished the day's tragic events and claimed that 'many sides' were to blame for what had occurred.

He said in a press conference: 'We condemn in the strongest possible terms this egregious display of hatred, bigotry, violence, on many sides... The hate and division must stop, and must stop right now.'

His initial refusal to condemn white supremacists attracted widespread criticism.

Matt Shultz of Cage the Elephant is pictured performing before the sun went down on the unity concert held on the University of Virginia's campus

Chris Stapleton (left), a country singer, is pictured performing with his band at the concert

Brittany Howard performed with The Roots at the concert, which was attended by thousands of people

The Roots (pictured) were formed in 1987 by Tariq 'Black Thought' Trotter and Ahmir 'Questlove' Thompson

The band has served as the house band for Jimmy Fallon's various late-night talk shows since 2009

Pictured are Chris Martin and Jonny Buckland performing during the day at the concert. Temperatures climbed into the 90s in the college town on Sunday

Pictured are Martin and Buckland enjoying themselves while performing at the concert

Dave Matthews, the concert's organizer, is pictured with a raised fist. His band got its start in the Virginia college town

Pictured is Justin Timberlake performing at the concert. He told the crowd that he would be proud to tell his newborn son about how the concert reflected unity in the face of violence

Timberlake has one son with his wife, Jessica Biel. Their son was born in April 2015

Pictured backstage are Dave Matthews and Justin Timberlake amid a crowd of smiling onlookers

Pictured is a scene from the night of August 11, when a group of white supremacists participated in a torch lit march through the University of Virginia campus ahead of the United the Right Rally in Charlottesville

Pictured is a now-iconic photo of Peter Cvjetanovic, a student at the University of Nevada, protesting the removal of a statue of Thomas Jefferson after marching through the University of Virginia campus

'Jews will not replace us' and 'white lives matter' were among chants heard at the rally, according to witnesses