access, simply usurped the territory of Gornji Klek and most of Klek from Ragusa, which it had bought from King Dabiša of Bosnia at the end of the 14th century. After the fall of the Republic of Venice in 1797, and the Congress of Vienna in 1815, the Austrian Empire, which had annexed both the Dalmatian possessions of Venice and the territory of Ragusa, tried to buy back the Neum and Sutorina enclaves from the Ottomans, but in vain. Instead, it stationed a warship to block access to the port of Neum until the Treaty of Berlin, which gave the whole of Bosnia and Herzegovina to Austria-Hungary in 1878. Neum had been under Ottoman control for 179 years. Consideration was given to a plan to build a new advanced naval base at Neum-Klek by the Austro-Hungarian Navy. General Franz Conrad von Hötzendorf considered fortifying Neum with coastal batteries and torpedo craft to supplement seafront defenses (in order to prevent Italian raids, or worse a large scale Italian landing). The project never got past the planning stage prior to the outbreak of World War I in 1914. In 1918, as a consequence of Austro-Hungarian defeat, Neum joined the Kingdom of Serbs, Croats and Slovenes which would start being called "Yugoslavia" in 1929. Under the Karađorđević dynasty, the Yugoslav Government ignored the borders inherited from history twice: in 1929, when the Neum area was included in the Littoral Banovina, and in 1939 when, following the Cvetković–Maček Agreement, it was included in the Banovina of Croatia. Josip Broz Tito's federal Yugoslavia was founded on the principle, declared at the 1943 AVNOJ session in Jajce and comparatively well-respected by the Đilas commission in 1945, of establishing the federative republics in their borders of 1878, which is why the Neum enclave is now part of independent Bosnia and Herzegovina, including most of Klek (Ponta Kleka, Rep Kleka), the two islets Veliki and Mali Školj and the rock of Lopata in the Bay of Klek. Since the 1990s, Croatia and Bosnia and Herzegovina have been in negotiations on how to handle traffic across the Neum region, including signing a Neum Agreement. When Croatia was admitted to the European Union in 2013, the border crossings in the Neum region became governed as external borders of the EU. The construction of the Pelješac Bridge, which bypasses Neum entirely, has significance for Croatia's integrity and also for its future