 According to the most likely theory, Kamakura, surrounded as it is on three sides by mountains, was likened both to a and to a , because both only have one side open.Another and more picturesque explanation is a legend, relating how Fujiwara no Kamatari stopped at Yuigahama on his way to today's Ibaraki Prefecture, where he wanted to pray at the Kashima Shrine for the fall of Soga no Iruka.He dreamed of an old man who promised his support, and upon waking, he found next to his bed a type of spear called a "kamayari".