A process for preparing alendronate sodium includes the reaction of gammabutyric acid with phosphorous acid and phosphorus trichioride and subsequent treatment with an aqueous solution of an alkali metal hydroxide, in which the reaction is conducted in liquid ionic solvents.