Considerable attention has been paid to design multifunctional hybrid materials for developing novel optoelectronic systems. Here, a series of novel porphyrin decorated Bi2O2CO3 nanocomposites (BOC/TPP) loaded with different porphyrin contents was prepared by a facile solvothermal technique to maximize the photocatalysis and optical nonlinearity. The photoresponsive range of the BOC/TPP nanocomposites can be extended from UV to visible light, and the band gap can be continuously tuned. The wide absorption of the as-prepared nanocomposites in the visible light region makes them suitable for photocatalytic and nonlinear transmission studies. The associated photocatalysis and optical nonlinearity for the BOC/TPP nanocomposites are shown to be dependent on the contents of porphyrin. Compared to BOC, TPP and other prepared nanocomposites with different TPP loadings, the BOC/0.03TPP nanocomposite with 3 wt% TPP exhibits the highest photocatalytic performance and nonlinear optical absorption effect, due to the efficient interfacial charge transfer and the strong interfacial electronic interactions between TPP and BOC. These findings provide an ideal scientific platform to guide the rational design of difunctional nanomaterials with desired optoelectronic performances.