 The part of the novel describing Sosuke's retreat to a Zen temple mirrors Sōseki's own experience in Kamakura.Shortly after completing "The Gate", Sōseki nearly died from an ongoing illness and its treatments, and his later works changed in tone and content.