Kaigaku was an orphan and a thief who had to eat scraps and steal to survive. He was one of the orphans Gyomei Himejima cared for at his temple. After he was caught by the other children for stealing temple money, he was chased out at night and encountered a demon, which he then let in to the temple in exchange for having his life spared.