pH-Sensitive hydrogels of dextran were synthesized by photochemical cross-linking reaction of methacrylate dextran (DEX-MA) at different derivatization degree, functionalized with acidic residues through reaction with phthalic anhydride. The hydrogels were characterized by FT-IR spectra, swelling measurements, experiments of chemical and enzymatic hydrolyses. The swelling data agreed with the formation of networks having pH-sensitive behaviour. This property was confirmed by the morphological examination performed by scanning electron microscopy on samples maintained in media at different pH. (S)-4-Isobutyl-2-phenylpropionic acid (ibuprofen) was loaded into the polymeric matrices. The analysis of the release profiles of the drug from the three networks showed that all the matrices were able to retain ibuprofen during the transit through the stomach, releasing it in a sustained way in the intestinal tract at a rate strictly dependent on the derivatization degree in methacrylic groups. In vivo studies verified the biocompatibility of the materials. Moreover, when the matrix loaded with ibuprofen was administered to rats, it was able to protect them from the ulcerogenic effects of the drug.