Mashego was elected to the
National Assembly in the
2019 general election from the ANC's Gauteng list. He served on the Portfolio Committee on Human Settlements, Water and Sanitation. During a virtual committee meeting in April 2020 amid the
COVID-19 pandemic in South Africa, Mashego was criticised for joking that fellow ANC MP
Enock Mthethwa's
Zoom background, which mainly consisted of
whiskey bottles, was making him "thirsty" at a time the sale of alcoholic beverages were prohibited by the national government. In August 2021, the ANC announced that Mashego would be taking up the role as chairperson of the newly established
Portfolio Committee on Water and Sanitation. He was elected unopposed on 31 August. Mashego was not listed as an ANC candidate for the 2024 general elections. ==References==