 The queen, Beatrice of Naples commissioned him to write a history of Hungary.Pietro Ranzano has finished the work in a year under the title "Epithoma rerum Hungarorum".The heroic history treated the Hungarians as the direct descendants of the Huns and the king as the second Attila.