Purpose: To overcome the challenges caused by the use of conventional ophthalmic dosage forms such as the fast elimination of the drug from the surface of the eye, in this study, dual drug-loaded nanofibers were developed for sustained ophthalmic delivery of Gentamicin (GNT) and Methylprednisolone (MP). Moreover, the solvent effects, polymer mixtures, and method of preparation on the release profile of the prepared nanofibers, were evaluated. Methods: The nanofibers were prepared using Polycaprolactone, Poly (lactic-co-glycolic acid), and Polyvinyl alcohol using electrospinning technique. Thereafter, seven optimized formulations were developed with different solvent mixtures and polymer concentrations using various electrospinning methods. The physicochemical and mechanical properties of nanofibers were also evaluated, and the morphology of formulations was observed. The antibacterial efficacy was investigated and the in vitro release amounts of GNT and MP from nanofibers were estimated using the bioassay and Ultraviolet-visible spectroscopy. Results: The developed G1, G4, G5, G6, and G7 had suitable mechanical properties and morphologies with diameter ranging between 70-350 nm. The 1:1 v/v ratio of DMF/DCM in the solvent mixture and using core-shell technique for the preparation, formed nanofibers with more favorable release profiles. The optimized formulations indicated sustained-release manner for both drugs during 3-9 days and the antibacterial efficacy against Staphylococcus aureus. Conclusion: Among all the prepared formulations, the nanofiber with core-shell structure possessed the best sustained-release profiles of GNT and MP. The obtained results suggest that these nanofibers have a potential to be used as an insert in the eye for long-term release of the drug.