The present study was designed to evaluate the effect of bioactive hepatic peptide (BHP) on the immune function of mice and to examine the mechanism mediated by the related factors cytokine suppressor of cytokine signaling 1 (SOCS1) and microRNA (miR)-155. The mice were divided into eight groups, including a normal mouse group, normal peptide groups (low-dose, mid-dose and high-dose), an immunosuppressed group, and immunosuppressed with peptide groups (low-dose, mid-dose and high-dose). The proliferative ability of splenic lymphocytes was determined in vitro using a Cell Counting kit-8 assay. Wright's staining was used to assess the phagocytic function of macrophages. Histological changes in the spleen were evaluated by hematoxylin-eosin staining. The relevant factors SOCS1/miR-155 were assessed by immunohistochemistry and reverse transcription fluorescence-quantitative polymerase chain reaction analysis. The levels of the cytokines TGF-β1, IL-10 and IL-17A were determined by enzyme-linked immunosorbent assay. First, the organ index, percentage of lymphocytes, phagocytosis experiments and splenic lymphocyte proliferation test results revealed that the immunodeficient mouse model had been successfully established. Second, compared with the control mice, the normal peptide group mice exhibited increased spleen and thymus indices, percentages of lymphocyte subsets, macrophage phagocytosis percentages, phagocytic indices, splenic lymphocyte proliferation and expression of miR-155; however, the expression of SOCS1 was decreased in the normal peptide groups to varying extents. In addition, the expression of SOCS1 was upregulated, whereas that of miR-155 was downregulated in the immunosuppressed group. Compared with the mice in the immunosuppressed group, the mice in the immunosuppressed with peptide groups had increased spleen and thymus indices, percentages of lymphocyte subsets, macrophage phagocytosis percentages, phagocytic indices, splenic lymphocyte proliferation and expression of miR-155; however, the expression of SOCS1 was decreased in the immunosuppressed with peptide groups to varying extents. Following treatment with BHP, the secretion of TGF-β1 in the spleen of the normal mice and immunosuppressed mice was significantly decreased, and the secretion of IL-10 was significantly increased. No significant difference in the expression of IL-17A was observed among the groups. In summary, BHP improved the immune function of the normal mice and immunosuppressed mice. This data provides a scientific basis for the development of bioactive peptide health products.