After the marriage of Skanderbeg and the birth of his son Gjon, Hamza Kastrioti lost every hope of inheriting the Principality of Kastrioti.[4] He deserted to the Turkish Sultan Mehmed II in 1457 and converted back to Islam[4][5] and along with Isak-Beg he was one of the commanders of the Ottoman troops in the Battle of Ujëbardha.[4] In that battle he was captured by Skanderbeg's forces and placed in detention in Naples on charges of treason. He was later freed and went to join his wife and children in Constantinople, and continued to serve in the Ottoman high ranks. His loss was regarded as a tragedy by Albanians.