Kakuei Tanaka
Ueki was appointed president of Sagami Women's University in 1968. In 1971 he again served as justice minister for a brief period between February to July. On 7 July 1972 he was appointed minister of finance, replacing Mikio Mizuta in the post. Ueki served in the cabinet led by Prime Minister Kakuei Tanaka. Ueki's term ended on 22 December 1972 and Kiichi Aichi was appointed to the post.