Despite accounting for only 0.2 % of gastrointestinal malignancies, ampullary carcinoma is the second most common malignant tumor in the peripelvic area after pancreatic head cancer, highlighting the need for new drug delivery systems, as pancreaticoduodenectomy remains the primary treatment. In this study, we synthesized a novel Cd(II) coordination polymer (CP1), {[Me4N]2[Cd3(4,4′-bpdc)4]}n (4,4′-H2bpdc = 4,4′-biphenyldicarboxylic acid), under hydrothermal conditions using tetramethylammonium cations as templates. The photocatalytic performance of CP1 was investigated under UV light irradiation. Hyaluronic acid (HA) and carboxymethyl chitosan (CMCS) were chemically synthesized to retain the biocompatibility of natural polysaccharides, resulting in HA/CMCS hydrogels with a three-dimensional porous structure, as revealed by scanning electron microscopy. This structure makes the hydrogel an excellent drug carrier. We recombined CP1 and the drug paclitaxel (PTX) within the hydrogel, constructing a HA/CMCS-CP1@PTX nanodrug platform. This platform exhibited excellent drug-loading performance and allowed effective temperature control through light sources, enabling controlled release rates. In vitro cell tests demonstrated that the system promoted apoptosis by modulating the expression of apoptosis-related factors and HHLA2, thereby inhibiting the progression of ampullary carcinoma.