Nanocomposite biocompatible hydrogels (NCHG) were synthesised as model systems for in situ cured potentially local drug delivery devices for curing periodontal infections. The composite consists of the following components', nanoparticles (NPs), matrix gel, and Chlorhexidine (CHX) as antibacterial drug. The NPs were obtained by free radical initiated copolymerization of the monomers, 2-hydroxyethyl methacrylate (HEMA) and polyethyleneglycol dimethacrylate (PEGDMA), in aqueous solution. The same monomers were used to prepare crosslinked matrices by photopolymerization. NCHGs were obtained by mixing NPs, monomers, and drug in an aqueous solution then crosslinked by photopolymerization. Studies of release kinetics revealed that on average 60% of the loaded drug was released. The most rapid release was observed over a 24 hour period for matrix gels with low crosslinking density. For NCHGs the release period exceeded 48 hours.