The present work focuses on the structural, morphological, electrical characteristics, and antibacterial activity of mesoporous silicon (PS) against S. aureus and E. coli. We depict the structural and antimicrobial activity of PS as a result of different etching times (10.0, 20.0, 30.0, 40.0, 50.0, and 60.0 min) with a current density of 100 mA/cm2. The structural and morphological characteristics of synthesized PS have been examined with Fourier-transform infrared spectroscopy (FTIR), X-ray diffraction (XRD), scanning electron microscopy (SEM), transmission electron microscopy (TEM), and atomic force microscopy (AFM). FTIR spectra have been used to confirmed the Si–O, Si–O–Si bond and the adsorption on the surface of PS nanoparticles. The formation of pores on the c-Si wafer results in an analysis of a photoluminescence (PL) band at 712 nm, which changes with etching time in a process similar to current density. The correlation exist among etching times and the ideality factor (η) and barrier height (фb). Gram-positive (S. aureus) and Gram-negative (E. coli) bacteria showed enhanced antimicrobial activity against the PS nanoparticles. The synthesized of PS has been shown with good electrical and antimicrobial activities.