we learn that Boldwood has turned himself in at the Casterbridge prison, while Bathsheba has tended to Troy and called for a surgeon. Troy, however, is dead.
Months later, in March, Boldwood's trial occurs. The onlookers learn that Boldwood had prepared a set of ladies' dresses in expensive fabrics in a closet in his home and several sets of jewelry in packages labeled "Bathsheba Boldwood." Boldwood is sentenced to death by hanging. However, the residents of Weatherbury are convinced that Boldwood is not "morally responsible" for his actions, and Gabriel sends a petition to the Home Secretary requesting a reconsideration of the sentence. Finally, on the eve of his execution the news comes that he has been pardoned and given "confinement during Her Majesty's pleasure" instead.
Troy is buried in the same grave as Fanny Robin. Bathsheba's spirits slowly revive as the spring turns to summer. One day, as she is visiting the grave, she sees Gabriel singing in the church choir. He joins her at the grave and tells her that he intends to leave Weatherbury. Upset, she begs him to stay, but he will not. When she receives his official final notice as bailiff, she cries and decides to visit him at his cottage. He invites her in and explains that one of his motivations for leaving are the rumors going around the village about a romance between the two of them. After some confusion, Bathsheba admits that she has come "courting him" and the two agree to marry.
The last chapter portrays the quiet wedding of Gabriel and Bathsheba. After the wedding, the two dine at the farm, and all the men of the village gather to sing and play for them.