This invention relates to novel room-temperature process for obtaining calcium phosphate, in particular hydroxyapatite, coatings and microspheres that encapsulate drugs, proteins, genes, DNA for therapeutical use. The coatings and microspheres are designed to perform a defined biological function related to drug delivery, such as gene therapy through gene delivery. A novel method for encapsulation, and subsequent controlled release of therapeutically active agents from such biofunctional coatings and microspheres is disclosed. Such coatings and microspheres are useful for side-effects free, long-term, targeted, controlled release and delivery of drugs, proteins, DNA, and other therapeutic agents.