In a ritual presided over by Surya himself, Hanuman and Suvarchala were united in marriage. This union allowed Hanuman to fulfill the requirement of being married, thereby enabling Surya to teach him the scripture on grammar.
The marriage between Hanuman and Suvarchala was not a conventional union driven by romantic or worldly desires; rather, it was a symbolic and ritualistic arrangement designed to facilitate Hanuman's learning and spiritual growth. Through this divine marriage, Hanuman gained access to the knowledge he sought, and Surya was able to fulfill his role as a teacher.
While this story is not part of the epic Ramayana, it is believed to be recorded in a book on Hanuman composed by the revered sage Parashara, adding depth and richness to the mythology surrounding Hanuman's extraordinary life and adventures.