The synthesis of porous ionic polymers (PIPs) via the Menshutkin reaction is intriguing because the reaction works smoothly in catalyst-free condition with 100 % atom utilization. However, the rotation of methane site, nonrigid knots, and charge interaction all may cause collapses of the channel, which is detrimental to the synthesis PIP in solid-state conditions. In this work, an inorganic salt (NaBr, NaCl: pollution-free and easy to recycle) was rationally chosen as the hard template and effectively prevented the intermolecular packing. Moreover, the increased surface area dramatically promoted the catalytic activity of PIP for cyclic carbonate synthesis. This work provides a green and efficient strategy to construct PIPs via the Menshutkin reaction.