Presently, the surge in the consumption of herbal formulations is encouraged by several factors; the main factor is that they are relatively safe and effective. Plant extracts are considered an alternative source of synthetic drugs and are expected to produce promising results for treating several diseases. The present study aimed to formulate and evaluate antibacterial thermosensitive mucoadhesive gel containing Quercus infectoria gall extract and synthesize and characterize the silver nanoparticles by using Quercus infectoria gall extract. For extraction, water and ethanol were used as a solvent. The major constituents of the extract are tannic acid, gallic acid, ellagic acid, and these three constituted showed synergistic antibacterial activity. Formulated gel delivered the drug for more than 4 hr. The batch F5 optimized with good viscosity, spreadability and extrudability, mucoadhesive strength, release of drug is more, and the gel is stable; hence it is used for further evaluation like in-vitro skin irritation study and in-vitro antibacterial test. The formulated gel was not irritant and showed antibacterial activity greater than the marketed gel formulation containing tannic acid as an active pharmaceutical ingredient to treat mouth ulcers and gum disorders. The successful synthesis of silver nanoparticles from the extract of Quercus infectoria gall act as a reducing and capping agent. AgNPs exhibit significant antibacterial activity.