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". Kamatari enshrined it in a place called Ōkura. "Kamayari" plus "Ōkura" then turned into the name "Kamakura". However, this and similar legends appear to have arisen only after Kamatari's descendant Fujiwara no Yoritsune became the fourth "shōgun" of the Kamakura shogunate in 1226, some time after the name "Kamakura" appears in the historical record. It used to be also called (short for ).