The Legend of Himiko is probably based on an ancient Japanese tale told in the Chinese history book Sanguo Zhi. The nation of Yamatai is under threat from the overseas kingdom of Kune (probably based off the nation of Kunekoku)[1]. In an attempt to stave off an invasion, the people of Yamatai attempt to install a Queen to rule over their kingdom, which is to be chosen by the mysterious Bokka.
However, the Kune army attacks Yamatai before the selection of the Queen can be completed, and the Bokka disperse the six queen candidates across the nation. The Bokka themselves take shelter in a newborn girl named Himiko and the pendant she is wearing and transport her to modern times, where she is found by Masahiko Kutani.
Several years in the future, Himiko and Kutani attend high school together. When the two are wandering around an archeological dig, Himiko's pendant activates, sending both back into ancient Japan where they are found by Imari, one of the queen candidates, and Iga within Kune's place in Yamatai, three years after Kune's initial attack.
Both Himiko and Kutani learn about the Bokka and what relationship they have with it. The six queen candidates also finally all join back together, for the first time since they were dispursed when Kune first attacked. They eventually fight against Shikara, the governor-general of Yamatai and the son of the king of Kune, in order to free Yamatai from Kune's rule.