The Tang dynasty had two great prime ministers who contributed to the success of the Zhenguan reign and helped lay the foundation of the Kaiyuan period.
Wei Zheng was a very direct prime minister who was not afraid to speak his mind in front of Tang Taizong. Wei Zheng's bluntness with Taizong often got him into trouble, and both men constantly engaged each other in heated arguments. Taizong would often leave the room fuming. One time Taizong threatened to behead Weizheng following one heated discussion.
But Taizong did not execute Wei Zheng. Remarkably, the emperor eventually came around to seeing the wisdom of his prime minister's words, and concluded that Wei Zheng was right.
Wei Zheng was Li Jiancheng's advisor prior to the Xuanwumen coup. Despite the fact that Weizheng advised Li Jiancheng to eliminate Li Shimin, Li Shimin did not kill Wei Zheng following the success of the coup. Li Shimin's decision to retain his slain brother's advisor as his prime minister turned out to be a shrewd move.
During the Zhenguan reign, Wei Zheng often criticized Taizong's spending habits. This helped check the extravagance that might have brought fiscal distress to the country. The luxurious indulgences of Sui Yangdi and Qianlong were examples of two emperors who helped bring down their respective dynasties.
One time Taizong embarked on a campaign to eliminate dishonesty and corruption in his government by having undercover agents pose as ordinary civilians offering bribes to government officials in return for favors. The purpose of the campaign was to find out which government officials accepted the "false" bribes. One official did, and Taizong wanted to execute him. But Wei Zheng told Taizong "why execute him when you brought out his behavior through a fake campaign?" According to Wei Zheng, the best way to bring out good behavior from the subordinate was to have the emperor behave as a good model himself in front of his subjects.
Taizong saw the wisdom of these words and did not execute the official. When Wei Zheng died, Taizong was saddened and erected a monument to honor his prime minister.
The other great prime minister during Tang was Di Renjie, Wu Zetian's prime minister. Strangely, she deferred to him while being ruthless to other court officials. Di was not born into an aristocratic family. He took the civil service exams and gradually rose through the ranks, eventually becoming a detective solving murder cases in the provinces. His work in the provinces caught the eye of Wu Zetian, who was looking for talented people to fill her government. After becoming her prime minister, Di was indispensable. There were many aristocratic factions within the government who hated her. Di headed a meritocracy who served as a bulwark against her opponents.
Di, like Wei Zheng before him, also criticized his monarch. He often spoke out frankly against Wu's explicit or unscrupulous behaviors in front of her. There was an incident when Di Renjie and Wu Zetian were discussing a policy issue and she became angry with him when he sharply disagreed with her. Di walked to one of the pillars in the hall, pounded his head repeatedly onto the pillar, and told her that he was willing to keep pounding his head until he killed himself. She begged him to stop, and finally agreed to adopt his proposal.
Wu Zetian could not afford to get rid of a loyal advisor like Di Renjie. He certainly knew that.
Without these two men, the first half of the Tang dynasty would not have been the success it was.