The present invention relates to the use of at least one compound of the family of the avermectins or of the family of the milbemycins in the preparation of a pharmaceutical composition intended for the treatment of ophthalmic pathologies, including ocular rosacea. Another subject-matter of the present invention is the use of ivermectin in the preparation of a pharmaceutical composition intended for the treatment of ocular rosacea.