"
An earthen wall called the Odoi was built around this city, whose residents included a powerful monastic whose complexion when angry earned him the nickname "Red Monk." A non-Boxer group using the motto "expel all the barbarians" started a fire that consumed much of this city after inciting a skirmish at its Hamaguri gate. The Daidairi complex at the north end of this city could be reached by the extremely-wide Suzaku avenue. The shogun Ashikaga Yoshimitsu built a palace on this city's Muromachi street. The Onin war broke out in this city which witnessed the 1950 burning of the Golden Pavillion. In 794 AD, the imperial court moved to it from Nara. For 10 points, name this Japanese city which preceded Edo, and therefore Tokyo, in its role as capital.
An earthen wall called the Odoi was built around this city, whose residents included a powerful monastic whose complexion when angry earned him the nickname "Red Monk.
Kyoto [accept Heian-kyo throughout; prompt "Heian"]