No where in Ramayana, written by Valmiki, the writer of the epic, Rama was mentioned as God. Neither Ravana.
Though demon king Ravana is the prime antagonist character in the epic Ramayana, yet most of the people are not aware of his background, his conquests and his erudite knowledge.
He is considered as the most revered devotee of Lord Shiva. An Accomplished Scholar, great musician.
Ravana's grandfather, the sage Pulastya, was one of the ten Prajapatis or mind-born sons of Brahma and one of the Saptarishi (Seven Great Sages Rishi)
Ravana performed an intense penance (or tapasya) to Brahma, lasting several years. During his penance, Ravana chopped off his head 10 times as a sacrifice to appease him. Each time he sliced his head off a new head arose, thus enabling him to continue his penance. At last, Brahma, pleased with his austerity, appeared after his 10th decapitation and offered him a boon. Ravana asked for immortality, which Brahma refused to give, but gave him the celestial nectar of immortality. The nectar of immortality, stored under his navel, dictated that he could not be vanquished for as long as it lasted.
His abilities now truly awe-inspiring, Ravana proceeded on a series of campaigns, conquering humans, celestials and other demons. Conquering the netherworld completely, he left his brother Ahiravana as king. He became supreme overlord of all Asuras in the three worlds, making an alliance with the Nivatakavachas and Kalakeyas, two clans he was unable to subdue. Conquering several kingdoms of the human world, he performed the suitable sacrifices and was crowned Emperor. Ravana defeated Indra and the gods, Surya, Varuna and Yama.
Kubera at one point chastised Ravana for his cruelty and greed, greatly angering him. Proceeding to the heavens, Ravana fought and defeated the devas, singling out his brother for particular humiliation. By force he gained command over the devas, celestials, and the serpent races. At the time of the Ramayana, set several years later, Ravana is shown as dominating all human and divine races – so much so that he can command the sun's rising and setting.
Ravana was a great practitioner of statecraft(the skillful management of state affairs; statesmanship.). When Lord Rama killed Ravana, who was on his last breath, Rama instructed his brother Lakshmana to go to Ravana and learn the art of statecraft and diplomacy from the dying demon king.
It was Ravana and his brother Kumbhakarana, who performed penance, got miraculous powers from Lord Brahma and drove out Kuber to occupy the golden kingdom of Lanka.
There are several temples in India where Ravana is worshipped and associated with Lord Shiva at some places. Temples related with Ravana in India are Ravana Mandir Bisrakh,Koteshwar Temple Gujarat,Vidisha Ravangram Temple and Murudeshwara Temple has Ravana Statue, Koneswaram temple of Sri Lanka is one of the most famous Ravana temple in the world.
As a conclusion: The heroism of the hero is proportional to the greatness of the villain. And One Must Never Forget That Ego Kills.