A ridiculous hat-wearing farce pushed Liang Wuji, a counselor from a poor family, to the forefront of the temple. With humor and resourcefulness, he met a group of companions with the same strange personalities, and cooperated with Li Qingyuan, who disguised himself as a man, and climbed from the bottom to the top of power. He willfully moved from the arena to the court, from jokes to national affairs, and survived amidst the intrigues, overt and covert struggles of all forces. They were funny at first and then reversed, experiencing friendship, love and betrayal, and finally revealed the truth about power: the most powerful power struggle is often not a conspiracy, but the courage and sincerity that make people laugh. In the end, Ryan successfully breaks the situation, everyone gets what they want, and the world returns to a new order.