Ali confesses to Yahia that he killed Maryam, after which Yahia, wanting to stay in prison, stabs Joseph, but the latter forgives him. Selim kills Ali for fear of scandal.