Onihei

Onihei Hankachō (鬼平犯科帳) is a series of Japanese historical novels written by Shōtarō Ikenami. The first volume was released in 1967. The novel was also adapted into a long-running manga by Takao Saito, and has ran in Comic Ran since 1993. An anime adaptation aired in the Winter 2017 season, for thirteen episodes.

Plot
It's the latter half of the Edo period when cruel thieves feared Heizo Hasegawa, known as "Heizo the Oni". He is the head of Arson Theft Control.He never tolerates injustice and punishes criminals who violate the three articles of a thief.Surrounded by quirky characters, Heizo rids the injustice that infests the city of Edo.