During the Nara period (726), Emperor Shomu appointed FUJIWARA no Umakai as Chief of Construction of Naniwa no Miya to start the construction of Naniwa-kyo (an ancient capital of Naniwa) while having a detached palace in place (under the dual capital system in conjunction with Heijo-kyo[the ancient capital of Japan in current Nara]).
奈良時代の神亀3年（726年）に聖武天皇が藤原宇合を知造難波宮事に任命して難波京の造営に着手させて離宮を設置する（平城京との複都制）。