To reduce the rate of drug release and thereby provide sustained delivery over a longer time period, negatively charged groups such as phosphates and carboxylates are used for cationic drugs, whereas positively charged groups such as quaternary ammonium groups are used in combination with anionic drugs.