Developing two-dimensional (2D) hybrid nanosheet arrays integrating inorganic and organic components is highly significant for third-order nonlinear optical (NLO) applications. Herein, an oriented 2D porphyrin-based MOF (ZnTPyP(Co)) thin film composed of vertically stacked ultrathin nanosheets was fabricated via the liquid-phase epitaxial (LPE) layer-by-layer (LBL) method. The prepared ZnTPyP(Co) thin film exhibits an outstanding third-order NLO response with a high third-order nonlinear susceptibility of ∼2.63 × 10-7 esu, which is ascribed to the hybrid nanosheet array structure. Additionally, experimental Z-scan measurement and theoretical calculations also demonstrate that the substitution of Co metal ions in the porphyrinic core can increase the level of delocalization of the porphyrinic group and contribute to the material's enhanced NLO properties. These findings not only provide new film candidates for NLO application but also highlight the potential of 2D MOF nanosheets in advanced optical devices.