We found that either p62 or Optn deficiency increased the susceptibility of zebrafish embryos to Mm infection, while overexpression of p62 or optn mRNAs enhanced Lc3 association with Mm and had a host-protective effect. Here, SQSTM1 is linked to infection.