In 784, the Emperor Kanmu constructed a new capital (Nagaokakyo) in Nagaoka in Yamashiro Province in order to free himself from the influence of temples and shrines which had been getting more and more powerful.
784年（延暦3年）強まってきた寺社勢力からの脱却のため、桓武天皇が山背国長岡の地に新たな都（長岡京）を造成した。