Two-dimensional polymeric networks are a new class of polymers with interesting physicochemical and biological properties. They promise a wide range of future biomedical applications including pathogen interactions, drug delivery, bioimaging, photothermal, and photodynamic therapy, owing to their unique features, such as high surface area and multivalent interactions at nano-biointerfaces. In this work, a thermosensitive two-dimensional polymeric network consisting poly(N-isopropylacrylamide) (pNIPAM) chains that are mechanically interlocked by a polyglycerol platform was synthesized and used for bacteria incapacitation. Two-dimensional hyperbranched polyglycerol (2D-hPG) was synthesized by a graphene-assisted strategy and used for encapsulation of azobisisobutyronitrile (AIBN). Radical polymerization of N-isopropylacrylamide by encapsulated AIBN resulted in thermoresponsive platforms with ~ 500 nm lateral size and 20–50 nm thickness. Due to its porous structure, 2D-PNPG was able to efficiently load antibiotics, such as tetracycline (TC) and amoxicillin (AMX). The rate of release of antibiotics from 2D-PNPG and the antibacterial activity of the system correlated with the variation of temperature as a result of the thermosensitivity of 2D-PNPG. This study shows that two-dimensional polymers are efficient platforms for future biomedical applications including drug delivery and bacteria incapacitation.