A pharmaceutical formulation of the invention can be in a form such as a cream, an ointment, a foam, a gel, a lotion, a pressure-sensitive adhesive composition, or other forms known to those skilled in the art, each particular form containing imiquimod and fatty acid in particular amounts, and optionally containing various additional elements.