Two pillar-layered MOFs, non-interpenetrated HIAM-3016-op and two-fold interpenetrated HIAM-3017-op, are successfully constructed by integrating two carboxylate groups and one pyridine group into one linker skeleton via an in situ “one-pot” strategy.