The present invention provides a pharmaceutical composition, thepharmaceutical composition comprising a pharmaceutically active substance, anapatite-based matrix, and a surface modifying agent. Further, the apatite-basedmatrix comprises calcium ion, phosphate ion, hydrogen carbonate ion,magnesium ion and iron ion. Also, the surface modifying agent comprises aprotein, a polymer or a combination thereof. Further, a method of producingthepharmaceutical composition (200) is disclosed.