Three kinds of organic amines have been used as soft templates for constructing a series of metal-organic frameworks with variable pores. The pore sizes of these MOFs exactly matched those of amines, confirming the template effect of these amines.