The invention discloses a pharmaceutical composition comprising: a) an ionic complex that is formed between i) a biologically active compound having at least one basic, positively charged functional group and ii) a polyanion that is inositol hexaphosphate or inositol hexasulphate and b) a pharmaceutically acceptable carrier comprising a biodegradable, water-insoluble polymer. The invention is also for a process for its preparation.