As a teenager, Wei Zhi was born humble, lonely and poor, and once became a monk. He likes reading, delves into ancient books and is knowledgeable. At the end of the Sui Dynasty, Wei Zhi took part in the uprising against the tyranny of the Sui Dynasty. Later, he took refuge in Li Yuan, established by Tang Dynasty, and worked for Prince Li. Because of his outstanding talent, Wei Zhi was highly valued by the prince.
Later, a "Xuanwumen mutiny" was launched and his younger brother Li was killed. Young and keen to know that Wei is a talented person, so he summoned him personally.
As soon as Li Shimin saw Wei Zhi, he was very angry and asked, "Why do you want to alienate our brother?" The ministers present thought that Wei Zheng would be killed.
However, Wei Zhi calmly and confidently replied: "If the Crown Prince had listened to me earlier, he would certainly not have ended up like this." After hearing this, Li Shimin was moved by Wei Zhi's fearless strength and integrity, and admired his personality from the heart. So instead of punishing him, he was reused.