Coordination polymers (CPs) are a diverse class of multi-dimensional compounds that show promise as photocatalysts for degrading dyes in polluted water. Herein, a new 1D Cd(II)-based coordination polymer with the formula [Cd(bpyp)(nba)2] (1) (bpyp = 2,5-bis(pyrid-4-yl)pyridine and Hnba = 4-nitrobenzoic acid) is synthesized and characterized. In 1, the two carboxyl groups of two different nba− ligands show μ2-η1:η1 and μ1-η1:η1 coordination modes to connect the CdII centers and sit on either side of the chain along the b direction. The produced CP 1 was utilized as the photocatalyst in the process of the photodegradation of methyl blue (MB), methyl orange (MO), rhodamine B (RhB), and methyl violet (MV) dyes when exposed to UV light. The photocatalytic degradation activities of CP 1 were analyzed, and the results suggest that it exhibits an extraordinary efficiency in the degradation of MB, MV, MO, and RhB. RhB has a 95.52% efficiency of degradation, whereas MV has a 58.92% efficiency, MO has 35.44%, and MB has 29.24%. The photodecomposition of dyes is catalyzed mostly by •O2− and •OH−, as shown by research involving the trapping of radicals.