Around 1728, he went up to the capital, and while serving the Tokudaiji family, he learned Confucianism and Suika Shinto (Shinto thoughts advocated by Ansai YAMAZAKI) under Nakayoshi MATSUOKA and Masahide TAMAKI, disciples of Ansai YAMAZAKI.
1728年（享保13年）頃上京して徳大寺家に仕え、山崎闇斎門下の松岡仲良・玉木正英に師事して、儒学・垂加神道を学んだ。