A traditional literary hero is most often the main character of the story.
He is the character who has a certain goal and who will face challenges and dangers in achieving that goal. The hero may have flaws so that in the end, the hero will learn something valuable.