Emperor Go-Daigo's brief attempt to restore the imperial power in the Kenmu Restoration alienated the samurai class. Ashikaga Takauji obtained the samurai's strong support, and deposed Emperor Go-Daigo. In 1338 Takauji was proclaimed "shōgun" and established his government in Kyoto. However, Emperor Go-Daigo escaped from his confinement and revived his political power in Nara. The ensuing period of Ashikaga rule (1336–1573) was called Muromachi from the district of Kyoto in which its headquarters – the – were located by third "shōgun" Ashikaga Yoshimitsu in 1378. What distinguished the Ashikaga shogunate from that of Kamakura was that, whereas Kamakura had existed in equilibrium with the imperial court, Ashikaga took over the remnants of the imperial government. Nevertheless, the Ashikaga shogunate was not as strong as that in Kamakura had been, and was greatly preoccupied with civil war. Not until the rule of Ashikaga Yoshimitsu (as "shōgun", 1368–94, and chancellor, 1394–1408) did a semblance of order emerge.