An improved formulation of an ophthalmic composition contains riboflavin, as cross-linking agent of corneal collagen, administered by corneal iontophoresis, able to guarantee an increased capacity of permeation of riboflavin of the corneal stroma and therefore greater therapeutic efficacy in the treatment of keratoconus.