 The death of Mehmed II prevented this.Instead, Ahmet sided with Beyazid II in the struggle for who would succeed the sultan.However, Beyazid II did not fully trust Ahmed and had him imprisoned and later killed on 18 November 1482 at Adrianople.