The present invention relates to pharmaceutical compositions in the form of a gel for controlled- or sustained-release of a pharmaceutically active agent and to methods for treating or preventing or preventing a condition in an animal by administering to an animal in need thereof the pharmaceutical compositions. One particular type of condition for which the pharmaceutical compositions are useful is a microbial infection, e.g., of the skin, ear, or eye, especially for veterinary applications.