Hamza Kastrioti (Latin: Ameses Castriota; fl. ) was a 15th-century Albanian nobleman. He was the nephew of Gjergj Kastrioti Skanderbeg. Probably born in Ottoman territory, after the death of his father he was raised by Skanderbeg, who took him in his military expeditions. After the Battle of Niš he deserted Ottoman troops together with his uncle Skanderbeg, converted to Christianity and changed his name to Branilo. He supported Skanderbeg's uprising and was the vice captain of Skanderbeg's troops when they captured Krujë in 1443.
In 1448, Skanderbeg's forces under the command of Hamza Kastrioti and Marin Spani occupied the abandoned fortress town of Baleč and reconstructed it while Skanderbeg began his war against Venice. Hamza Kastrioti did not wish to stay in the fortress and went to Drivast leaving Marin Span with 2,000 soldiers in Baleč. Marin found the newly reconstructed fortress insecure and retreated with his soldiers toward Dagnum as soon as he was informed by his relative Pjetër Spani about the large Venetian forces heading toward Baleč. Venetian forces recaptured Baleč, burned wooden parts of the construction and destroyed reconstructed walls of the fortress.
After the marriage of Skanderbeg and the birth of his son Gjon, Hamza Kastrioti lost every hope of inheriting the Principality of Kastrioti. He deserted to the Turkish Sultan Mehmed II in 1457 and converted back to Islam and along with Isak-Beg he was one of the commanders of the Ottoman troops in the Battle of Ujëbardha. 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. He was one of the most brilliant generals of Skanderbeg and was very popular among the soldiers for his manners, second only to Skanderbeg. According to historians, along with him, League of Lezhë lost the chance to continue what Skanderbeg had begun.
- Dialogue, Volume 5, Issues 17-20. Dijalog. 1996. p. 78. Retrieved 27 March 2012.
Posle bitke kod Pirota, Skenderbeg zajedno sa sinovcem Hamzom, sinom svog starijeg brata Staniše ... (prešavši u hrišćanstvo Hamza će uzeti ime Branilo, po svom čukundedi)...CS1 maint: discouraged parameter (link)
- Glas, Volumes 319-323 (in Serbian). Belgrade: Serbian Academy of Science and Arts. 1980. p. 39. Retrieved 20 January 2012.
За команданта балечке посаде Скендербег је одредио свог нећака Амесу (Хамзу) и Марина Спана. Али се Амеса тамо није хтео задржавати, већ зе кренуо на Дриваст, а Марин се с 2 ООО својих људи осећао угрожен у тек обновљеном граду ... Млечани су запалили дрвену грађу а свеже зидове сравнили са земљомCS1 maint: discouraged parameter (link)
- Glas, Volumes 319-323 (in Serbian). Belgrade: Serbian Academy of Science and Arts. 1980. p. 55. Retrieved 20 January 2012.
... да поруше обновљени Балеч с таквим снагама као да је у питању највећа тврђава. То је Петар Спан јавио свом рођаку Марину и овај је у последњем тренутку сакупио војнике и спустио се према ДањуCS1 maint: discouraged parameter (link)
- Noli, Fan Stylian, George Castroiti Scanderbeg (1405–1468), International Universities Press, 1947 pp. 52-53
- Scanderbeg Authors Harry Hodgkinson, Bejtullah D. Destani, Westrow Cooper, David Abulafia Editor Bejtullah D. Destani Edition illustrated Publisher Centre for Albanian Studies, 1999 ISBN 1-873928-13-0, ISBN 978-1-873928-13-4 p.144