The thioredoxin MoTrx2 protein mediates reactive oxygen species (ROS) balance and controls pathogenicity as a target of the transcription factor MoAP1 in Magnaporthe oryzae.