The purification of total flavonoids extracted from the persistent calyx of Physalis alkekengi L. var. franchetii(Mast.) Makino using D-101 macroporous resin was optimized by an orthogonal array design involving five independent variables at four different levels using adsorption and desorption rates of total flavonoids as response variables. The purity of total flavonoids was increased from 11.45% to 45.56% when the total flavonoid extract from the persistent calyx of Physalis alkekengi L. var. franchetii(Mast.) Makino at pH 10 was adsorbed by the resin for 3 h and then desorbed with a 35-fold volume of 80% ethanol for 7 h.