Hanuman is a Hindu god, who was an ardent devotee of Rama according to the Hindu legends. He is a central character in the Indian epic Ramayana and its various versions. He also finds mentions in several other texts, including Mahabharata, the various Puranas and some Jain texts. A vanara (monkey-like humanoid), Hanuman participated in Rama's war against the demon king Ravana. Several texts also present him as an incarnation of Lord Shiva.
The Ramayana is an old myth from India; a compilation and integration of stories from the culture and traditions of India. Rama is considered a hero by definition: he is one who is chosen and who is recognized by his people as possessing extraordinary virtue, culture, and humanity.