Provided is an ophthalmic composition containing cyclosporine as an active ingredient and including polyethoxylated castor oil or polyethoxylated hydrogenated castor oil, and a method of preparing the same. Particularly, the ophthalmic composition is prepared as a nanoemulsion having a particle diameter of 100 nm or less simply by mixing and stirring an oil phase and an aqueous phase without using a high speed stirring or shearing machine, so that it is very physiochemically stable and storable for a long time. In addition, the ophthalmic composition causes no irritation to eyes.