The present invention relates to a method of coating a porous material such as a medical implant with a layer of calcium phosphate, wherein the material is submersed in an aqueous solution of calcium, phosphate and carbonate ions, and the pH of the solution is gradually increased. A calcium phosphate coating is formed on an internal surface of the porous material by agitating the solution during coating formation.