Thermoresponsive gels based onN-isopropylacrylamide functionalized with amino groups were modified with gallic acid, with gallate (3,4,5-trihydroxybenzoic) groups being introduced into the polymer network. We investigated how the properties of these gels were affected at varying pH, by the formation of complexes between the polymer network of the gels and Fe3+ions (which form stable complexes with gallic acid, exhibiting 1:1, 1:2, or 1:3 stoichiometry, depending on pH). The formation of complexes with varying stoichiometry within the gel was confirmed using UV-Vis spectroscopy, and the influence of such complexes on swelling behavior and volume phase transition temperature were investigated. In the appropriate temperature range, complex stoichiometry was found to strongly affect the swelling state. Changes in the pore structure and mechanical properties of the gel caused by the formation of complexes with varying stoichiometry were investigated using scanning electron microscopy and rheological measurements, respectively. The volume changes exhibited by p(NIPA-5%APMA)-Gal-Fe gel were found to be greatest at close to human body temperature (~38 °C). Modification of thermoresponsive pNIPA gel with gallic acid opens new opportunities for the development of pH- and thermosensitive gel materials.