Three rockets were fired into the heart of Kabul on Saturday morning, with one landing close to the presidential palace, a spokesman said.
The attacks came before the rush-hour when the city was almost empty and caused no casualties, said interior ministry spokesman Zemarai Bashary.
One of the rockets landed near the river a few hundred metres from the presidential compound and other ministries, and two rockets hit a mixed residential and market area.
"Three rockets were fired into the city this morning. One hit the bank of the river... but luckily they caused no casualty or damage," Bashary said.
The rockets were launched from the eastern edge of the city, he said blaming the attack on the "enemies of Afghanistan", a term often used to refer to the Taliban militants who are waging a bloody insurgency against the government and western troops.
Homemade roadside bombs - the main cause of casualties to Afghan and Nato troops in Afghanistan - and suicide attacks are the weapons of choice for the militants, but they are also known to fire rockets into civilian and military bases.