Soon the Funj came in conflict with the Ottomans, who had occupied Suakin around 1526 and eventually pushed south along the Nile, reaching the third Nile cataract area in 1583/1584. A subsequent Ottoman attempt to capture Dongola was repelled by the Funj in 1585. Afterwards, Hannik, located just south of the third cataract, would mark the border between the two states. The aftermath of the Ottoman invasion saw the attempted usurpation of Ajib, a minor king of northern Nubia. While the Funj eventually killed him in 1611/12, his successors, the Abdallab, were granted the authority to govern everything north of the confluence of Blue and White Niles with considerable autonomy.