 During the Great Turkish War (1683–1698), Slavonia was regained but western Bosnia, which had been part of Croatia before the Ottoman conquest, remained outside Croatian control.The present-day border between the two countries is a remnant of this outcome.Dalmatia, the southern part of the border, was similarly defined by the Fifth and the Seventh Ottoman–Venetian Wars.