Rival Somali leaders had been holding separate talks with Arab officials in the Sudanese capital,
The agreement, signed by both sides on Thursday, recognizes "the legality of the transitional government and the presence of the alliance of Islamic tribunals," Amr Moussa, the Arab League secretary-general, said after mediating the talks.
Both sides also urged an end to media and military campaigns and agreed to hold further talks on July 25, officials said.
The head of the delegation from the Islamic Courts Union (IGU), which removed US-backed regional commanders from the Somali capital on June 5 after weeks of deadly fighting, had said earlier he was willing to negotiate an end to the Somali crisis.
Ali Mohammed Ibrahim, a Muslim scholar, said on Thursday: "We have come to the negotiations to find a solution to
Thursday marked the first meeting between Arab League officials - including Moussa - and the Islamist delegation.
Bitter conflict
The group, which has seized control of much of southern
The
About 360 people have been killed and 2,000 wounded in fighting between the ICG and the US-backed local commanders.
More than 14 international efforts have failed to restore a functioning administration in the lawless nation of 10 million.
Photo Caption
Amr Moussa (L) participated in Thursday's talks in