The invention relates to pharmaceutical compositions that provide sustained-release of a pharmaceutically active compound and to methods of treating or preventing a condition in an animal by administering the pharmaceutical compositions to the animal by injection. When the pharmaceutical compositions are administered to an animal by injection, they form a drug depot that releases the pharmaceutically active compound over time. The pharmaceutical compositions can also be administered orally.