Throughout the world, numerous individuals are infected with Toxoplasma gondii, which may improve immunity against cancer. Furthermore, microRNAs (miRs) may be differentially expressed in the host upon infection with T. gondii. In the present study, RNA-sequencing analysis and reverse transcription-quantitative PCR revealed that miR-429-3p, miR-145a-5p, miR-211-5p, miR-31-3p and miR-135a-5p were determined to be downregulated, while miR-21a-3p, miR-135b-5p, miR-210-5p and miR-146-3p were upregulated in mice post-infection with T. gondii. Antitumor genes [TNF receptor superfamily member 11b, large tumor suppressor kinase (Lats)2 and Lats1] were identified as targets of miR-429-3p, miR-145a-5p, miR-211-5p, miR-31-3p and miR-135a-5p with a luciferase reporter assay. In addition, the protein levels of Lats2 and Lats1 were detected to be higher in T. gondii-infected mice than in the control group. Therefore, these results provide favorable evidence for the suppression of cancer upon T. gondii infection and may give novel ideas for the treatment of tumors.