In 901, on his way to exile in Dazaifu, Michizane stopped to pray at the Daishogun shrine on this site. In 949, after his death, seven pine trees miraculously grew overnight and emitted divine light, leading to the establishment of a shrine by imperial decree. Since then, it has been beloved by Osaka citizens as 'Tenma no Tenjin-san.'