Developing an ideal vitreous substitute/implant is a current challenge. Moreover, implants (e.g., heart valves and vitreous substitutes), are associated with a high risk of bacterial infection when it comes in contact with cells at implant site. Due to infection, many implants fail, and the patient requires immediate surgery and suffers from post-operative problems. To overcome these problems in vitreous implants, we developed a bacterial resistant vitreous implant, where meropenem (Mer), an antibiotic, has been incorporated in a hydrogel prepared by crosslinking HA (deacetylated sodium hyaluronate) with 4-arm-polyethylene-succinimidyl-carboxymethyl-ester (PESCE). The HA-PESCE hydrogel may serve as a suitable artificial vitreous substitute (AVS). The pre-gel solutions of HA-PESCE without drug and with the drug are injectable through a 22 G needle, and the gel formation occurred in approx. 3 min: it indicates its suitability for in-situ gelation through vitrectomy surgery. The HA-PESCE hydrogel depicted desired biocompatibility, transparency (>90 %), water content (96 %) and sufficient viscoelasticity (G′ >100 Pa) calculated after 1 month in-vitro, which are suitable for vitreous substitute. The HA-Mer-PESCE hydrogel showed improved biocompatibility, suitable transparency (>90 %), high water content (96 %), and suitable viscoelasticity (G′ >100 Pa) calculated after 1 month in-vitro, which are suitable for vitreous substitute. Further, hydrogel strongly inhibits the growth of bacteria E.coli and S.aureus. The drug loaded hydrogel showed sustained in-vitro drug release by the Fickian diffusion-mediated process (by Korsmeyer-Peppas and Peppas Sahlin model). Thus, the developed hydrogel may be used as a potential bacterial resistant AVS.