The owner determines that he can't let Azuma be ransomed before she returns. It would set a bad precedent otherwise. Yohei has his two chests brought in, and out spring both Azuma and Yojibei, now restored to his sense. Hikosuke is allowed to leave alive by Jibuemon, as long as he reports to the police that it was Yohei who did it and drops the charges. Yohei ransoms Azuma's contract for only 300 gold pieces, as it has not long to run, and gives the other 700 to various people. Azuma and Yojibei marry, to live happily ever after, although nothing is said of Okiku. Everyone begins to party.