Tripoli lies at the western extremity of Libya close to the Tunisian border, on the continent of Africa. Over a thousand kilometers (621 miles) separates Tripoli from Libya's second largest city, Benghazi. Coastal oases alternate with sandy areas and lagoons along the shores of Tripolitania for more than .