Surface-enhanced Raman scattering (SERS) has been considered as a promising sensing technique to detect low-level analytes. However, its practical application was hindered owing to the lack of uniform SERS substrates for ultrasensitive and reproducible assay. Herein, inspired by the natural cactus structure, we developed a cactus-like 3D nanostructure with uniform and high-density hotspots for highly efficient SERS sensing by both grafting the silicon nanoneedles onto Ag dendrites and subsequent decoration with Ag nanoparticles. The hierarchical scaffolds and high-density hotspots throughout the whole substrate result in great amplification of SERS signal. A high Raman enhancement factor of crystal violet up to 6.6 × 10(7) was achieved. Using malachite green (MG) as a model target, the fabricated SERS substrates exhibited good reproducibility (RSD ∼ 9.3%) and pushed the detection limit down to 10(-13) M with a wide linear range of 10(-12) M to 10(-7) M. Excellent selectivity was also demonstrated by facilely distinguishing MG from its derivative, some organics, and coexistent metal ions. Finally, the practicality and reliability of the 3D SERS substrates were confirmed by the quantitative analysis of spiked MG in environmental water with high recoveries (91.2% to 109.6%). By virtue of the excellent performance (good reproducibility, high sensitivity, and selectivity), the cactus-like 3D SERS substrate has great potential to become a versatile sensing platform in environmental monitoring, food safety, and medical diagnostics.