Three novel carbazoles CM-2, CM-3 and CM-4 were designed and synthesized by ketone- or aldehyde-functionalization of carbazole. Then a series of hypercrosslinked porous polycarbazoles(HPP-2, HPP-3 and HPP-4) was prepared using CM-2, CM-3 and CM-4 as monomers under the catalysis of FeCl3. The structures of the novel carbazoles and the hypercrosslinked porous polycarbazoles(HPPs) were characterized by nuclear magnetic resonance(1H NMR, 13C NMR), magic angle spinning nuclear magnetic resonance(MAS NMR), infrared(IR) and mass spectrometry(MS). The thermal stability and the gas(nitrogen, carbon dioxide and methane) adsorption properties of the obtained HPPs were also investigated. The results show that the structures of the novel carbazoles and the polymers are consistent with the molecular design. Three kinds of HPPs begin to degrade around 400 ℃ and render a mass loss less than 25% at 800 ℃, denoting that these materials have a good thermal stability. HPP-2, HPP-3 and HPP-4 present BET specific surface areas of 330, 420 and 660 m2/g, with pore sizes mainly distributed at 0.98, 0.96 and 1.07 nm, respectively. The adsorption capacities of CO2 on HPP-2, HPP-3 and HPP-4 are 6.90%, 8.30% and 9.80%, while those of CH4 on HPP-2, HPP-3 and HPP-4 are 1.10%, 1.30% and 1.60%, respectively. The results show that the obtained polymers possess mainly micropores and present high adsorption capacity for CO2 and CH4. This work provides a new approach for the synthesis of hypercrosslinked porous polycarbazoles.