The reaction of heptanoic acid (I) with H3PO3, PCl3 and benzenesulfonic acid at 65 C, followed by a treatment in refluxing water gives the target diphosphonic acid.