Aquatic environments serve as critical repositories for pollutants and have significantly accumulated micro- and nanoplastics (MNPs) due to the extensive production and application of plastic products. While the disease resistance and immunity of fish are closely linked to the condition of their aquatic habitats, the specific effects of nanoplastics (NPs) and microplastics (MPs) within these environments on fish immune functions are still not fully understood. The present study utilized zebrafish (Danio rerio) embryos and larvae as model organisms to examine the impacts of polystyrene NPs (100 nm) and MPs (5 μm) on fish immune responses. Our findings reveal that NPs and MPs tend to accumulate on the surfaces of embryos and within the intestines of larvae, triggering oxidative stress and significantly increasing susceptibility to Edwardsiella piscicida infection in zebrafish larvae. Transmission electron microscopy examined that both NPs and MPs inflicted damage to the kidney, an essential immune organ, with NPs predominantly inducing endoplasmic reticulum stress and MPs causing lipid accumulation. Transcriptomic analysis further demonstrated that both NPs and MPs significantly suppress the expression of key innate immune pathways, notably the C-type lectin receptor signaling pathway and the cytosolic DNA-sensing pathway. Within these pathways, the immune factor interleukin-1 beta (il1b) was consistently downregulated in both exposure groups. Furthermore, exposure to E. piscicida resulted in restricted upregulation of il1b mRNA and protein levels, likely contributing to diminished disease resistance in zebrafish larvae exposed to MNPs. Our findings suggest that NPs and MPs similarly impair the innate immune function of zebrafish larvae and weaken their disease resistance, highlighting the significant environmental threat posed by these pollutants.