He later established a private school, the Kogidō, in Kyoto in 1662. Following Jinsai's death in 1705, leadership at the Kogidō was assumed by his son, Tōgai (1670–1736). The Kogidō was located on the east bank of the Horikawa River, directly across from the school of Yamazaki Ansai. During his lifetime, Ansai became a major proponent of Zhu Xi's version of Song Neo-Confucian thought. Jinsai's school, in contrast, offered a sustained critique of Zhu Xi's ideas. Especially in Kyoto, Jinsai's school met with great success, attracting three thousand students from many different classes and professions.