Tripoli: "The sound of the explosion was very strong, and the house was shaking for few seconds," an unnamed witness told AFP.
The Moroccan embassy is not currently active, and it was unclear if anyone was inside the building at the time.
Morocco is currently hosting a UN-backed dialogue between representatives of the two rival governments controlling the country, with talks to resume on an unspecified date.
The bombing came hours after gunmen opened fire on South Korea's embassy compound from a passing car on Sunday, killing two Libyan guards and wounding a third person.
The Islamic State jihadist group claimed responsibility for the South Korean attack on Twitter, according to SITE Intelligence Group.
Libya has been plagued by chaos since the end of the 2011 revolt that toppled Moamer Kadhafi, with heavily armed militias battling for control of its cities and oil wealth and rival governments and parliaments vying for power.
The country has had two governments and parliaments since Tripoli was seized in August by the Islamist-backed Fajr Libya militia and the internationally recognized government fled to the country's far east.
A bomb exploded outside the Moroccan embassy in Libya's capital, a security official said today, just hours after a gun attack on the building housing South Korea's mission to the country.
"A bomb inside a bag went off near the gate of the Moroccan embassy in Bin Ashour area" in central Tripoli, the official said, adding "there were no casualties".
There was visible damage to a "few cars in the area", he said.
The Moroccan embassy is not currently active, and it was unclear if anyone was inside the building at the time.
Advertisement
The bombing came hours after gunmen opened fire on South Korea's embassy compound from a passing car on Sunday, killing two Libyan guards and wounding a third person.
Advertisement
Libya has been plagued by chaos since the end of the 2011 revolt that toppled Moamer Kadhafi, with heavily armed militias battling for control of its cities and oil wealth and rival governments and parliaments vying for power.
Advertisement
COMMENTS
Advertisement
Libya PM's Homes Targeted With RPGs, No Casualties Reported Over 60 Migrants Feared Dead Off Libya Coast After Boat Sinks "Worse Than War": Trauma Of Libya Flood Haunts Survivors 4 Top Leaders Quit Ajit Pawar's Party In Major Setback After Poll Drubbing Karnataka's 100% Quota Bill For Kannadigas In Private Firms For These Posts Trump's Running Mate Stirs Row With "Islamist" Nuclear State Jibe At UK 24 Hours Since Terror Attack, Encounter Continues In J&K's Doda Former Sikkim Minister's Body Found In West Bengal Canal Temple Trust Reacts To Shankaracharya's Kedarnath Gold Theft Claim Track Latest News Live on NDTV.com and get news updates from India and around the world.