The rapper-singer will perform on the Benjamin Franklin Parkway in Philadelphia on Independence Day for the free event.
Philadelphia Mayor Michael Nutter announced Monday at a news conference that Ed Sheeran, Jennifer Hudson and rising stars Ariana Grande and Aloe Blacc will also perform.
The Roots will work as the house band at their annual jam concert, which has previously featured Earth, Wind & Fire, John Mayer and Jill Scott.
The 4th of July Jam will air live on VH1 and Palladia and stream on VH1.com.
The Roots will release a new album, "And Then You Shoot Your Cousin," on May 19.