 After the conquest of Istanbul in 857/1453, he was appointed its first kadi, in which post he remained until his death in 863/1458-9.He is buried in the Zeyrek quarter of Istanbul, where he also built the mosque later attributed to a certain Hadjdji Kadin.He was buried next to the tomb of Abu Ayyub al-Ansari (Eyüp Cemetery), the companion of the Prophet Muhammad who died during the First Arab Siege of Constantinople (674–678 CE).