This outlet to the sea was the subject of two international treaties: the 1699 Treaty of Carlowitz assigned the region (as well as Neum) to the Ottoman Empire's Bosnia Eyalet (thereby cordoning off the Republic of Ragusa from the Republic of Venice), an arrangement that was subsequently confirmed by the Congress of Berlin in 1878, when it became part of the Austro-Hungarian occupied Bosnia. After World War I, it became part of the Mostar Oblast of the Kingdom of Serbs, Croats and Slovenes, and subsequently the Trebinje district of the Zeta Banovina within the Kingdom of Yugoslavia.