A topical pharmaceutical composition comprising a pharmaceutical active and a polymer of general formula I or general formula IIwherein Ck is a saturated or unsaturated, five, six or seven-membered ring R is a C1-C3alkyl n is 1, 2, 3, 4 or 5 and m provides a number average molecular weight of the polymer of from 2000 to 80,000.