In 1199, Yoritomo died falling from his horse when he was only 51 and was buried in a temple that had until then housed his tutelary goddess. He was succeeded by his 17-year-old son Minamoto no Yoriie under the regency of his maternal grandfather Hōjō Tokimasa. A long and bitter fight ensued in which entire clans like the Hatakeyama, the Hiki, and the Wada were wiped out by the Hōjō who wished to get rid of Yoritomo's supporters and consolidate their power. Yoriie did become head of the Minamoto clan and was regularly appointed "shōgun" in 1202 but by that time, real power had already fallen into the hands of the Hōjō clan. Yoriie plotted to take back his power, but failed and was assassinated on July 17, 1204. His six-year-old first son Ichiman had already been killed during political turmoil in Kamakura, while his second son Yoshinari at age six was forced to become a Buddhist priest under the name Kugyō. From then on all power would belong to the Hōjō, and the "shōgun" would be just a figurehead. Since the Hōjō were part of the Taira clan, it can be said that the Taira had lost a battle, but in the end had won the war.