The invention relates to a method for treating ocular infections, by topical application twice a day in each eye to be treated, for less than four days, of a medicament essentially consisting of azithromycin in solution in a pharmaceutically acceptable vehicle of linear medium-chain fatty acid triglycerides, at the concentration of 1% to 2%.