In the Okgwa version, the Goryeo princess Gongsim falls madly in love with Jo Tong, a twelfth-century man from Okgwa whose existence is historically attested. Jo Tong, who is married, decides that he must leave the capital to avoid the princess and volunteers to serve as a commander on Korea's northern frontier. One day, he is ambushed by enemy forces. He loses his left hand in the ensuing defeat. He resigns his command in shame and returns to Okgwa, where he dies of his injury. Meanwhile, Gongsim, who has been waiting for her love to return south, goes insane when he fails to come back. Her father sends her to Namsan, where she is cured of her madness by being initiated into shamanism. She rides a horse which goes where it will, intending to teach shamanism to the people wherever the horse may lead her. The horse stops at Okgwa, where she discovers Jo Tong's grave. She lives by his grave, spreading the shamanic religion among the locals. The locals hold a symbolic wedding for the souls of the two after her death. As of the 1970s, Jo Tong and Gongsim were worshipped as village patron gods of Okgwa at the local Seonangdang shrine, where wooden statues of the two were installed. Locals also identified a certain grave as belonging to the princess, and believed that her name was invoked by local shamans because it was she who had founded the shamanic religion of Jeolla Province.