Q: In this task you will be given a text passage from a trivia quiz. You should choose the category this question belongs to from these categories: History, Science, Social Science, Fine Arts, Literature. You can only choose one category, so if in doubt, please choose the closest match.
Toward the end of this period the office of Shikken assumed most of the Shoguns power, and Northern and Southern imperial lines existed simultaneously. It began when the Taira clan was defeated in the Gempei war, and also saw the defeat of two Mongol invasions. However, it ended when one of the generals in the Genko war defected to the emperor Go-Daigo. Seeing the rule of the Minimoto and Hojo families, For 10 points, identify this first Japanese Shogunate, which was succeeded by the Ashikaga Shogunate and is named for a city near Tokyo.
A:
History