The rapper, whose real name is Tauheed Epps, was with members of his entourage in the 800 block of Mission Street when three suspects approached the group at about 4:35 p.m., according to police.
Police said 2 Chainz had his wallet and cellphone taken during the robbery.
One of the suspects also fired a weapon, but no one was hit by the gunfire. The shooter was described as a Hispanic man between 20 and 30 years old with short, cropped hair who was wearing a black sweatshirt and blue jeans, according to police.
The suspects fled in a car described as a gray-colored sedan.
Police have not yet released additional details about the robbery.
The Atlanta-based rapper is signed with Def Jam Records and was in the Bay Area for a concert at the Oracle Arena in Oakland over the weekend.