In summary, our study suggests a critical role of myotubularin in maintaining dendrite morphology and function during the cellular stress imposed by either oxidative stress or pathogen infection. This evidence concerns the gene MTM1 and infection.