The invention relates to a method of inhibiting myopia, which inhibits myopia development by reducing the level of the intraocular cAMP. The method has a good effect on inhibiting myopia development. An adenylyl cyclase inhibitor is also applied for inhibiting myopia in this invention and has a good effect on inhibiting myopia.