The Roots' Philly 4th of July Jam was held Friday on the Benjamin Franklin Parkway, where U.K.-based Sheeran closed the three-hour event that also featured Jennifer Hudson and Aloe Blacc.
Sheeran sang "The A Team" as well as his latest hit, "Sing." The latter track is from his new album, "+," which debuted at No. 1 on the Billboard 200 albums chart this week.
The event starring Questlove, Black Thought and other members of the hip-hop band aired live on VH1 and Palladia.
Pop singer Ariana Grande was supposed to be part of the lineup Friday, but pulled out because of a family emergency.
Copyright 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.