Surasa was a demoness (rakshasi) mandated by the gods to test Hanuman during his flight to Lanka. She appeared in his path and demanded he enter her mouth, saying it was a condition. When Hanuman cleverly expanded his size to escape, she opened her mouth wider, at which point he shrank and flew past. This was one of several tests Hanuman passed during his journey, demonstrating not just strength but wit.