After the war, de Wet joined Botha in politics, and was a member of the Transvaal legislative assembly from 1907 to 1910. He was a legal adviser to the Transvaal delegation to the 1908-1909
National Convention that drew up the
Constitution for the
Union of South Africa. In 1913, he was appointed a
King's Counsel. He was also a founder member of the
Suid-Afrikaanse Akademie vir Wetenskap en Kuns ("South African Academy for Science and Art") in 1909. De Wet was a member of the
Union Parliament between 1913 and 1929, serving as a member of the
House of Assembly from 1913 to 1920 and a
Senator from 1920 to 1929. He served in the
South African Party government as Minister of Justice from 1913 to 1924. As such, he had to deal with the legal aspects of an armed
Afrikaner uprising against the government in 1914, and the 1922
Rand Revolt. == Judicial career ==