A series of the magnesium apatite coatings according to (Ca10-xMgx)(PO4)6(OH)2, where x = 0 to 2, was synthesized through a sol-gel dip-coating method. The roughness of the magnesium coatings increased as more magnesium incorporated into the coatings. The mechanical properties of the coatings were analyzed with Nanoindentor. The incorporation of magnesium decreased the hardness and the Young’s modulus of the coating. The X-ray Photoelectron Spectroscopy (XPS) analysis revealed that only part of magnesium was incorporated into the apatite structure while the rest existed in the form of MgO in the coating.