By the nineteenth century the European States were vastly more powerful, and began to colonize North Africa. France spread its power south by taking Algeria in 1830 and later Tunisia. Britain gained control of Egypt in 1882. The Suez Canal was opened during this period, with far-reaching consequences for trade between Asia, East Africa and Europe. The Mediterranean countries were preferred because of the shorter route, and port cities such as Trieste with their direct, fast access to Central and Northern Europe were booming. Italy conquered Libya from the Ottomans in 1911. Greece achieved independence in 1832. The Ottoman Empire finally collapsed in the First World War, and its holdings were carved up among France and Britain. The rump state of the wider Ottoman Empire became the independent state of Turkey in 1923. Yugoslavia was created from the former Austro-Hungarian empire at the end of the First World War.