Lebanon’s civil war ended in 1989 with a collective agreement between the different fighting factions, aided by an international patronage from Saudi Arabia, United States and Syria. The agreement, which was annexed to the country’s constitution, was called the Taef Accord, referring to the area where the meeting was held in Saudi Arabia. Syria kept a strong influence afterwards until 2005, when its army withdrew from Lebanon.
At the time, the fighting factions compromised, accepted removing military presence and dismantling their militias structures, but they did that on one condition in return: sharing power. It was the easiest method (in theory) to stop the war, to hand power to the warlords. The civil war was actually a mini-global war fought by local pawns. It was fueled by the Lebanese internal divisions, but the United States, Soviet Union, Israel, Palestinians, Syria, Iran, Saudi Arabia, Libya had direct interests (or presence) in Lebanon’s war.