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