What book genre would that be?

Hello What genre should a story be classified under? It tells of a man living in the Middle Ages/early modern period, whose naiveté persuades another man to do something shameful in order to achieve something. Due to mishaps, he is subjected to further embarrassing deeds, which also has a comic effect. Despite difficulties, he still…