In 'The Painted Veil', the ending is both tragic and redemptive. Walter, who had taken Kitty to a cholera-stricken region to punish her for her infidelity, contracts the disease and dies. His death becomes a turning point for Kitty, who, through the suffering and loss, begins to see the world and herself more clearly. She finds solace in helping others at the convent where she stays, and this selfless service transforms her.
After Walter's death, Kitty returns to England, where she reunites with her father. Their relationship, once strained, becomes a source of mutual support. Kitty, now wiser and more independent, decides to raise her child with values of integrity and self-respect, something she had lacked in her earlier life. The novel closes with Kitty reflecting on her journey, understanding that true happiness comes from within and not from external validation or societal expectations.