Cazaril is a noble in the land of Chalion, but was betrayed and sold into slavery to the barbaric Roknari. The people of Chalion and neighboring lands worship five gods (Father, Mother, Son, Daughter, and Bastard), while the Roknari deny the Bastard's divinity; each faith group considers the other to be infidels. After nearly two years as a
galley slave, he returns to a regional court where he once resided and is hired as tutor to Iselle (second in line for the throne of Chalion after her brother Teidez) and her handmaid Betriz, to whom he is attracted. Iselle and Teidez's mother Ista also lives with them, but is considered mad. Teidez and Iselle accept an invitation to stay at the capital, accompanied by Betriz, Cazaril, and other domestics. There Cazaril encounters his betrayer, Dondo, whose brother Martou is
chancellor to the ailing monarch Orico. Orico spends much time in his
menagerie, run by the Roknari exile Umegat. The corrupt Dondo befriends Teidez to further his own ambitions, introducing the boy to various vices. He also connives to arrange a marriage between himself and a horrified Iselle. In desperation, Cazaril calls on the Bastard for a miracle of death magic, which would kill both himself and Dondo. Dondo dies, but Cazaril does not, finding himself now a saint—an agent of the gods, gifted with
second sight. With the help of Umegat, another saint, he learns that the royal family of Chalion is under a generation-old curse, and that Orico is only sustained through the cleansing magic of the sacred animals in the menagerie. He also learns that Dondo's soul and the Bastard's death demon are both trapped inside a tumor in his body, with the demon trying to bring about his death so it can return to the gods with the required two souls. Deceived by Dondo, Teidez destroys the menagerie and injures Umegat, but a wound he sustains in the process becomes infected and proves fatal. Orico collapses, leaving Iselle soon to ascend the throne, but the real power at court is wielded by Martou, who spreads rumors that she is unstable like her mother. Cazaril informs Iselle of the curse, and theorizes that since Ista married into the curse, Iselle might be able to marry out of it. She dispatches him in secret to arrange her marriage to the heir of Ibra, a neighbouring country. He speaks to Ista on the way, who tells him of a prophecy that the curse can be broken by a man "willing to lay down his life three times for the House of Chalion." In Ibra, he finds that he and the heir, Bergon, have already met. They were galley slaves together, and he voluntarily took a severe beating meant for the boy. Informing Bergon of the curse, they convince Bergon's father to agree to the marriage. They return to Chalion, fighting through an ambush set by Martou. Iselle flees Martou's custody, and she and Bergon are married. To Cazaril's horror, he discovers that, instead of releasing Iselle, the curse has descended on Bergon as well. Martou and his men try to kill Bergon and recapture Iselle. Cazaril fights them off, enabling the couple to escape, but is captured. Martou stabs him with his sword, hitting Cazaril's tumor and releasing the demon, which disincorporates the souls of Cazaril, Dondo, and Martou. Cazaril has a mystical experience where the Daughter reveals that his three willing deaths (taking the fatal beating for Bergon, invoking death magic for Iselle, and being stabbed by Martou) have made him a suitable vessel through which she can reach into the physical world and lift the curse. She then returns him to his body as the demon leaves with the souls of Dondo and Martou. Iselle is crowned as ruler of Chalion, with Bergon as her consort and their children to inherit both lands. Cazaril is made chancellor, and he and Betriz are happily married. ==Allusions to actual history and geography==