A macro-/mesoporous polymeric network with densely incorporated pillar[5]arene functionality was prepared via ionic complexation between a polymerized ionic liquid and carboxylated pillar[5]arene. It retained the solution-state host-guest property of the pillar[5]arene and was successfully applied as a selective absorbent for n-alklyene diols.