A topical formulation comprising (a) a therapeutically effective amount of tofacitinib; (b) at least one solvent; and (c) optionally one or more other pharmaceutically acceptable excipients is provided. Also provided is a method for treating and/or preventing autoimmune diseases in a subject administering said topical formulation.提供一種包含(a)治療有效量的托法替尼(tofacitinib);(b)至少一溶劑;以及(c)選擇性地一種或多種其他藥學上可接受的賦形劑的局部配方。亦提供一種在施予局部配方以用於治療及/或預防患者的自體免疫疾病的方法。