Two different silsesquioxane-based porous polymers (FHPPs), namely FHPP-1 and FHPP-2, have been prepared, respectively, by changing the acid scavenger from sodium bicarbonate to triethylamine in the Heck reaction between octavinylsilsesquioxane (OVS) and 1,4-dibromotetrafluorobenzene. It was observed that defluorination occurred in the case of triethylamine. FHPP-1 possesses a higher surface area of 600 m g and a hierarchical porous structure; in contrast, FHPP-2 possesses a S value of 325 m g and a microporous structure. This work provides a new approach to the preparation and tuning of fluorine-containing porous polymers based on silsesquioxanes. These porous materials were employed to remove dyes and a heavy metal from water, showing good binding efficiencies.