Lanthanide-based light-emitting coordination polymers (CPs) and CP gels (CPGs) have significance for applications in optical systems, image processing/multiplexing, and optical sensors. In this study, we report two new luminescent CPs (EuL-CP (1) and TbL-CP (2)) and CPGs (EuL-gel (5) and TbL-gel ( 6)) using lanthanide(III) ions (Ln(III) = Eu(III) and Tb(III)) and 4-(4carboxyphenyl)-2,2:6,2-terpyridine ligand (L) capable of forming stable thermoreversible gels. Probable structures of EuL-CP (1) and TbL-CP (2) and the formations of EuL-gel ( 5) and TbL-gel ( 6) are proposed based on adequate computational studies. The CPGs are stimuli-responsive and could be utilized as invisible security inks for encryption. Further, poly(methyl methacrylate) (PMMA) polymer doped with respective CPs (0.75 wt %) is found to be suitable for forming composite films with UV-shielding properties.