Today, dyes/pigment-based materials are confronting a serious issue in harming marine ecology. Annihilate these serious water pollutants using photoactive 2D nanohybrid catalysts showed promising comparativeness over available photocatalysts. In the present work, a facile route to decorate Ruthenium (Ru) on 2D MgB2 flower-like nanostructures was developed via ecofriendly guar gum biopolymer substantial template (MgB2/GG@Ru NFS) and its photocatalytic performance was reported. Synthesis of MgB2@Ru, MgB2/GG@Ru NFS and commercial MgB2, was studied by FTIR, XRD, FE-SEM, EDX, AFM, TEM, UV–vis spectra, and XPS analysis. From the results, the MgB2/GG@Ru NFS exhibited a superior photocatalytic performance (99.7 %) than its precursors MgB2@Ru (79.7 %), and MgB2 (53.7 %), with the degradation efficiency of the crystal violet (CV) within 100 min under visible light irradiation. The proposed photo-catalyst MgB2/GG@Ru NFS showed negligible loss of photocatalytic activity even after five successive cycles, revealing its reusability and enhanced stability due to the network structure. The photocatalytic mechanism for MgB2/GG@Ru NFS was evaluated by trapping experiment of active species, verifying that superoxide (O2−) and electron (e−) contributed significant role in the dye degradation.