After the Battle of Yamasaki, Hideyoshi attempted to have a temple built at Mt. Funaoka, which was north of Kyoto, in order to mourn the passing of Nobunaga, and was given a jigo (literally, "temple name," which is the title given to a Buddhist temple) of the Tensho-ji Temple from the Imperial Court.
山崎の合戦後、秀吉は信長を弔うため、京都の北船岡山に寺を建てようとして天正寺という寺号を朝廷から賜る。