Hwang-Ung gave the bear and the tiger 20 cloves of garlic and some mugworts. They were told to eat them, stay in a cave for 100 days, and pray earnestly.
After 20 days, the tiger became hungry and could no longer persevere, so he left the cave in search of food. When the 100 days were almost at an end, the bear began to lose its fur and its back feet began to change, until at the end of the 100th day the bear was fully transformed into a beautiful woman. She became known as Ung-Yo, which means, "the girl incarnated from a bear".
Hwang-Ung then married Ung-Yo, and she gave birth to a son, who was named Dan-Gun. This child gave rise to the first Korean Dynasty.
The legend of Dan-Gun was first recorded by the 12th century scholar-statesman-general Kim Pu-Sik in his historical work Sam-Guk-Sagi, Annals of the Three Kingdoms, the earliest and most important surviving source of history on the three kingdoms of Korea. This work tells of the earliest Korean people, believed to have come from present day Manchuria, northern China, and Mongolia. These people eventually formed tribal leagues which collectively became ancient Korea or Joseon , literally meaning "Land of the Morning Calm." They ruled the territory between the Liac River in southern Manchuria and the Taedong River in central North Korea. Among these people, the most powerful clan was the Bear Totem family, which provided most of the rules for this tribal league. This may have had some influence on the part of the bear in the Legend of Dan-Gun. Since the word "Gom" means both King and Bear in old Korean languages, it is not unnatural for this legend to have originated during the more primitive culture of Korea.