With the establishment of the post of Kyoto machi-bugyo in 1669, all Buddhist temples and Shinto shrines with the exception of monzeki temples (temples of high rank where members of imperial family and nobility entered the priesthood) came under the control of machi-bugyo.
1669年の京都町奉行の設置を機に、門跡寺院を除く寺社の管轄が町奉行となった。