Passage: In 784, the capital moved briefly to Nagaoka-kyō, then again in 794 to Heian-kyō (modern Kyoto), which remained the capital until 1868. Political power within the court soon passed to the Fujiwara clan, a family of court nobles who grew increasingly close to the imperial family through intermarriage. In 858, Fujiwara no Yoshifusa had himself declared sesshō ("regent") to the underage Emperor. His son Fujiwara no Mototsune created the office of kampaku, which could rule in the place of an adult reigning Emperor. Fujiwara no Michinaga, a skilled statesman who became kampaku in 996, governed during the height of the Fujiwara clan's power and had four of his daughters married to Japanese Emperors. The Fujiwara clan held on to power until 1086, when Emperor Shirakawa ceded the throne to his son Emperor Horikawa but continued to exercise political power, establishing the practice of cloistered rule, by which the reigning Emperor would function as a figurehead while de facto power was held by a retired predecessor behind the scenes.Throughout the Heian period, the power of the imperial court declined. The court became so self-absorbed with power struggles, and with the artistic pursuits of court nobles, that it neglected the administration of government outside the capital. The nationalization of land undertaken as part of the ritsuryō state decayed as various noble families and religious orders succeeded in securing tax-exempt status for their private shōen manors. By the eleventh century, more land in Japan was controlled by shōen owners than by the central government. The imperial court was thus deprived of the tax revenue to pay for its national army. In response, the owners of the shōen set up their own armies of samurai warriors. Two powerful noble families that had descended from branches of the imperial family, the Taira and Minamoto clans, acquired large armies and many shōen outside the capital. The central government began to employ these two warrior clans to help suppress rebellions and piracy. Although...

Question: Where was the capital in 1867?
Heian-kyō