The story develops in the feudal Tokugawa (Edo) era of Japan in the 18th century, in a poor district of Tokyo, where impoverished Matajuro Unno, a rōnin (master-less samurai), lives from hand to mouth among equally poor people of lower social classes.