That 1617 treaty stated that Poland would not interfere in the internal affairs of Ottoman vassals in Transylvania, Moldavia and Wallachia, the Commonwealth was to prevent Cossacks from raiding lands in the Ottoman Empire, while ceding Khotyn. In return, the Ottoman Empire promised to stop Tatar raids. The Ottoman Empire also had the right to interfere in Transylvania, Moldavia and Wallachia and select the rulers of that region.