Machi-bugyo was a name of a governmental post in the Edo period that was in charge of administration and judicature in an urban area (called machi-kata) in a territory.
町奉行（まちぶぎょう）とは江戸時代の職名で、領内の都市部（町方）の行政・司法を担当する役職。