So far the attacks appear to have been more bark than bite. No deaths have been confirmed by officials and a hospital nurse said 12 wounded patients were treated.
But the two nights of attacks brought Prime Minister Abdiweli Sheikh Ahmed to urge a meeting of government and security leaders to halt the mortar fire.
"Those explosions create fear in our people, we must investigate and swiftly bring to justice those behind these attacks," Ahmed told the gathering. "Our people should be able to live without fear and that is the number one responsibility of my government. I want every one of you in this room to come up with a result. This cannot be allowed to happen again."
"This is a big shock," she said. "Mogadishu is no longer safe as we thought."
Government forces have already rounded up dozens of suspects and security forces are working together to ensure those behind the attacks are caught, said Abdikarim Hussein Guled, the government's minister of security.
"It was really scary. It's reminiscent of the 2010 chaos," said Halimo Aden, a mother of four who said three mortars landed in their neighborhood, wounding two people.