The reason why the ending of Dream of the Red Chamber was a tragedy was because it depicted a complicated relationship between the characters and the social reality, but in the end, it did not achieve the perfect harmony shown in the comedy ending. The tragedy of a novel usually means that the protagonist has experienced various setbacks and hardships but ultimately failed to achieve his or her desired goal. As the main character in the novel, Jia Baoyu experienced the decline of his family, the setback of love, the loss of friendship and other unfortunate events. Finally, he died in the deserted garden. Such an ending showed the impermanence and unpredictability of life, which made people feel deeply regretful and sad. The tragedies in novels usually contained deep human thoughts and moral implications. Through the tragic love story between Jia Baoyu and Lin Daiyu, Dream of the Red Chamber expressed the author's deep reflection on the complexity of human nature and social reality. For example, through the relationship between Jia Baoyu and Lin Daiyu, the novel explored the relationship between love and friendship, as well as the good and evil, vanity, greed and other aspects of human nature. This kind of ending not only made people feel emotional pain, but also made people think deeply about the nature of human nature and society. To sum up, the reason why the ending of Dream of the Red Chamber was a tragedy was that it depicted a complicated relationship between the characters and social reality, but in the end, it did not achieve the perfect harmony shown in the comedy ending. At the same time, the tragedy of the novel also contains profound human thinking and moral meaning, which makes people feel emotional pain and make people think deeply about the nature of human nature and society.