Required to maintain the full capacity of the mycobacteria to respond to oxidative stress via the degradation of the oxidation-induced damaged nucleotides. It hydrolyzes all canonical (d)NTPs, as well as the mutagenic dUTP and 8-oxo-7,8-dihydro-2'-deoxyguanosine 5'-triphosphate (8-oxo-dGTP). Also involved in the transcriptional activation of RelA in response to oxidative stress. ATP + H2O = AMP + diphosphate + H(+) Homotetramer. By oxidative stress. Cells lacking this gene show are defective in response to oxidative stress. Complementation with mazG restores resistance to oxidative stress. Belongs to the nucleoside triphosphate pyrophosphohydrolase family.