During the Ottoman–Venetian War (1714–1718), trade relations were suspended and Ulcinj ships were ordered by Istanbul to stop Venetians from loading goods onto the Albanian coast and that all ships be suspended. This led the Ulcinj agas to kill the dizdar of Ulcinj who intended to implement the Sultans orders. As the piracy grew, the Sultan ordered Ibrahim Pasha of Bosnia to stop the pirates which was only possible after a joining of the Pasha of Shkoder. It is believed that Black slaves arrived in Ulcinj thanks to the Albanian pirates who traded with the Maghreb pirates. Mehmet Pasha of Shkoder burned down the ship of Ulcinj pirate captain Ajdar Piri in the city port in front to the inhabitants.