The synthesis and performance of molecularly imprinted membranes (MIMs) as a solid phase extraction packing materials for the separation and purification of thymopentin from crude samples was described. In order to increase structural selectivity and imprinting efficiency, surface-initiated ATRP and ionic liquid (1-vinyl-3-ethyl acetate imidazolium chloride) were used to prepare molecularly imprinting membranes. The results demonstrated that solid phase extraction disks stuffed by MIMs with ionic liquids as functional monomer demonstrated high isolation and purification of performance to the thymopentin. The molecular recognition of thymopentin was analyzed by using molecular modeling software.