In recent years, exploring interactions between sunlight, semiconducting minerals and microorganisms in nature has attracted great attention. However, relatively little research has been conducted on the interaction between minerals and microorganisms in the plain areas of the Yellow River Basin under sunlight. In this study, the mineral composition and microbial community of red soil from the Ningxia Plain, China were analyzed. X–ray diffraction (XRD) results showed that red soil contained semiconducting minerals such as birnessite, hematite and goethite. 16S rRNA analysis found that electroactive microorganisms such as Proteobacteria, Firmicutes and Actinobacteriota were enriched in in–situ microbial community of red soil. Afterwards, electrochemical tests such as linear sweep voltammetry (LSV) and I–t curves, indicated that red soil exhibited good semiconducting properties under light irradiation. Finally, a dual chamber system and electrochemical techniques were used to explore the electron transfer relationship between red soil and microorganisms. The open circuit voltage (350 mV) and maximum power density (1242.72 mW/m2) of red soil cathode system were significantly improved compared to blank graphite electrode, indicating that red soil could serve as electron acceptors for microbial extracellular respiration. Red soil electrode in live bacteria exhibited the highest photocurrent density (0.29 μA/cm2) and the lowest charge transfer resistance (Rct) (223 Ω) under light conditions, indicating that red soil accelerated the rapid transfer of electrons, reduced polarization loss, and enhanced extracellular electron transfer (EET) process under light conditions. This study demonstrated that the participation of semiconducting minerals in microbial EET processes under sunlight in the Ningxia Plain, China.