Born in Demotika, Bayezid II was educated in Amasya and later served there as a bey for 27 years. In 1473, he fought in the Battle of Otlukbeli against the Aq Qoyunlu.