However, Masamichi KOBORI, the seventh head of the clan, was engaged as an obanto (head of the Imperial Guards) and Fushimi Bugyo (municipal administrator of Fushimi) under Okitsugu TANUMA, and was dismissed during the Fushimi Riot that occurred in 1788.
しかし7世小堀政方は田沼意次のもとで大番頭や伏見奉行の要職を務めたが、伏見騒動によって天明8年（1788年）改易されることになる。