In this work, using divinylbenzene (D), 1-vinylimidazole (V) and 1-vinyl-3butylimidazolium bromide ([VBIM][Br]) as monomers, the binary-monomer poly (ionic liquids) (PILs) and ternary-monomer PILs were successfully synthesized, via hydrothermal polymerization and anion exchange, sequentially. Compared with each other, the ternary polymeric acidic IL catalyst has a clear spongy porous structure, while having a more stable macroporous structure, a larger specific surface area, more acidic groups and more active sites. Catalytic performance of catalyst was investigated through the alkylation of o-xylene and styrene. The effect of the amount of IL added and the length of the cation chain on the ternary polymerization of acidic IL was systematically investigated.Under optimal reaction conditions (molar ratio of monomers was D:V: [VBIM][Br] = 2:1:1, the most suitable cation chain length was C 4 ), the synthesized MPD-[C 4 V]-[VBIM][SO 3 CF 3 ] has a larger specific surface area (89.47 m 2 /g), large pore volume (0.29 cm 3 /g), and abundant mesopores and macropores, which help to improve the contact between the active site and reactants. Moreover, the catalyst could maintain a relatively high conversion of styrene (99.0%), 1,2-diphenylethane yield (98.7%) and high thermostability under reaction and be easily be divided from the solution, which is critical for heterogeneous solid catalysts.