On Sunday, a tense calm returned to the capital as the fighting subsided. Fighters loyal to Mr. Bashagha withdrew to the outskirts of Tripoli. Residents returned to their normal schedules, and shops reopened, but fears remained that the fighting could erupt again.
Before the clashes erupted, there had been rising tensions in Tripoli among the rival militias. Early on Saturday, an armed convoy belonging to a militia loyal to Mr. Bashagha was attacked as it drove through the capital, prompting the brief wave of violence.
In February, Libya’s Parliament declared that the Tripoli government’s authority, including that of Mr. Dbeiba, had expired after scuttled elections. Parliament voted to install an interim government and unanimously picked Mr. Bashagha as interim prime minister. But Mr. Dbeiba declared the vote illegitimate and vowed to hold onto power.