The subject of the present invention is a method for preparing a pharmaceutical moxifloxacin hydrochloride composition in solid form, which comprises mixing a moxifloxacin hydrochloride having a water content of less than 2% by weight with one or more pharmaceutically acceptable excipients. The subject of the invention is also a pharmaceutical composition obtainable by this method.