Nitazoxanide (NTZ) is a broad‐spectrum antiparasitic and antiviral drug (thiazole). However, although NTZ has been extensively used, there are no reports concerning its toxicology in vertebrates. This study used the zebrafish as a vertebrate model to evaluate the safety of NTZ and to analyse the related molecular mechanisms. The experimental results showed that zebrafish embryos exposed to NTZ had cardiac malformation and dysfunction. NTZ also significantly inhibited proliferation and promoted apoptosis in cardiomyocytes. Transcriptomic analysis used compared gene expression levels between zebrafish embryos in the NTZ treatment and the control groups identified 200 upregulated genes and 232 downregulated genes. Analysis by Kyoto encyclopaedia of genes and genomes (KEGG) and gene ontology (GO) showed that signal pathways on cardiomyocyte development were inhibited while the oxidative stress pathways were activated. Further experiments showed that NTZ increased the content of reactive oxygen species (ROS) in the hearts of zebrafish. Antioxidant gadofullerene nanoparticles (GFNPs) significantly alleviated the developmental toxicity to the heart, indicating that NTZ activated the oxidative stress response to cause embryonic cardiomyocyte injury in zebrafish. This study provides evidence that NTZ causes developmental abnormalities in the cardiovascular system of zebrafish.