The origin of Torin-in Temple lies in Sanyu-in Temple which was erected in 1531 by Ujitsuna HOSOKAWA to pray to Buddha for the happiness of his deceased father, and was located in present Kamigyo-ku Ward, Kyoto City.
享禄4年（1531年）、細川氏綱が父の菩提を弔うため現在の京都市上京区に建てた三友院を起源とする。