Fighting between members of two rival tribes in a southwestern town near the Algerian border in Libya has left 11 people dead.

Officials say clashes erupted late on Thursday between border guards from the western tribe of Zintan and Garamna tribesmen, following a personal dispute.

The fighting took place in the town of Derj, 550km southwest of the Libyan capital, Tripoli.

The officials say several residents fled into Algeria after Zintan border guards set fire to houses of the rival tribe. 

Deep-rooted tribal rivalry came to the surface in Libya after the fall of dictator Muammar Gaddafi's 42-year-rule in the 2011 revolution.