Context: The conventional liquid ophthalmic delivery systems exhibit short pre-corneal residence time and the relative impermeability to the cornea which leads to poor ocular bioavailability.Objective: The aim of this study was to apply quality by design (QbD) for development of dexamethasone sodium phosphate (DSP) and tobramycin sulfate (TS)-loaded thermoresponsive ophthalmic in situ gel containing Poloxamer 407 and hydroxyl propyl methyl cellulose (HPMC) K4M for prolonging the pre-corneal residence time, ocular bioavability and decreases the frequency of administration of dosage form. The material attributes and the critical quality attributes (CQA) of the in situ gel were identified. Central composite design (CCD) was adopted to optimize the formulation.Materials and methods: The ophthalmic in situ forming gels were prepared by cold method. Materials attributes were the amount of Poloxamer 407 and HPMC and CQA identified were Gel strength, mucoadhesive index, gelation temperature and % of drug release of both drug.Results and discussion: Optimized batch (F*) containing 16.75% poloxamer 407 and 0.54% HPMC K4M were exhibited all results in acceptable limits. Compared with the marketed formulation, optimized in situ gel showed delayed Tmax, improved Cmax and AUC in rabbit aqueous humor, suggesting the sustained drug release and better corneal penetration and absorption.Conclusion: According to the study, it could be concluded that DSP and TS would be successfully formulated as in situ gelling mucoadhesive system for the treatment of steroid responsive eye infections with the properties of sustained drug release, prolonged ocular retention and improved corneal penetration.