Vishnu took the form of a prince to defeat the demon king Ravana, who had kidnapped Rama's wife Sita.