In 1982, Israel invaded Lebanon with the stated aim of driving the PLO away from its northern borders. The war culminated in a seven-week-long Israeli naval, air and artillery bombardment of Lebanon's capital, Beirut, where the PLO had retreated. The bombardment eventually came to an end with an internationally brokered settlement in which the PLO forces were given safe passage to evacuate the country.