Three kinds of porous polymer were synthesized using a solvothermal of tri-4,4’- diphenylmethane diisocyanate (MDI-trimer) and different diamino monomers. The effects of the synthesis conditions and the monomer selection on the synthesis of porous polymer properties were studied. The results show that the synthesis of NH2-containing monomer molecules smaller the microporous polymers was easy to implement; the specific surface areas of the polymers are related to the monomer ratio and the reaction time. The results show that the synthesized porous polymer had good hydrogen storage performance; the hydrogen storage ability improved with the addition of heterocyclic nitrogen.