Karna married Mayanalla, a daughter of the Kadamba king Jayakeshi I (r. c. 1050–1080). The various legends provide contradictory accounts of how this marriage happened. According to Hemachandra's 12th century "Dvyashraya", Mayanalla was an extremely beautiful Kadamba princess. She once saw Karna's painting by a Buddhist artist. Enamoured by Karna's looks, she rejected all other suitors, and resolved to marry him. With the approval of her father Jayakeshi, she sent an artist to Karna's court with her own portrait. The Kadamba king also sent gifts for Karna, including an elephant. When Karna went out in the garden to check out the gifted elephant, he found the princess waiting for him. He verified her identity by asking certain questions, and then married her.