He built the city all around from the Millo and back to the surrounding wall. Joab restored the rest of the city.