This brought Bayezid in immediate contact with Burhan al-Din's domains.[5][7] The ambitions of the two men now came into direct conflict: Bayezid now intended to march against Amasya, and thereby cut off Burhan al-Din's expansion to the Black Sea, while the latter had been preparing himself to capture the city by occupying various surrounding fortresses in the previous years.[8] Amasya at the time was ruled by Ahmed, the son of the emir Hacı Şadgeldi Pasha, who had wrested it from the Eretnids.[9]