Infectious diseases caused by pathogenic bacteria and viruses pose a significant threat to human life and well-being. The prompt identification of these pathogens, characterized by speed, accuracy, and efficiency, not only aids in the timely screening of infected individuals and the prevention of further transmission, but also facilitates the precise diagnosis and treatment of patients. Direct smear microscopy, microbial culture, nucleic acid-based polymerase chain reaction (PCR), and enzyme-linked immunosorbent assay (ELISA) based on microbial surface antigens or human serum antibodies, have made substantial contributions to the prevention and management of infectious diseases. Due to its shorter processing time, simple equipment requirements, and no need for professional and technical personnel, ELISA has inherent advantages over other methods for detecting pathogenic bacteria and viruses. Horseradish peroxidase mediated catalysis of substrate coloration is the key for the detection of target substances in ELISA. However, the variability, high cost, and environmental susceptibility of natural peroxidase greatly limit the application of ELISA in pathogen detection. Compared with natural enzymes, nanomaterials with enzyme-mimicking activity are inexpensive, highly environmentally stable, easy to store and mass producing, etc. Based on their peroxidase-like activities and unique physicochemical properties, nanomaterials can greatly improve the efficiency and ease of use of ELISA-like detection methods for pathogenic bacteria and viruses. This review introduces recent advances in the application of nanomaterials with peroxidase-like activity for the detection of pathogenic bacteria (both gram-negative bacteria and gram-positive bacteria) and viruses (both RNA viruses and DNA viruses). The emphasis is on the detection principle and the evaluation of effectiveness. The limitations and prospects for future translations are also discussed.