The present study aimed to explore the underlying mechanisms of bone morphogenetic protein 2 (BMP2) in alleviating intervertebral disc degeneration (IDD). A rat puncture IDD model was constructed, and the rats were randomly divided into six groups: Control; IDD (model); IDD+PBS [containing 1010 adeno‑associated virus serotype 2 (AAV)]; and IDD + AAV2‑BMP2 (106, 108 and 1010). IL‑1β was used to treat primary nucleus pulposus (NP) cells to mimic IDD in vitro. The effects of BMP2 in IDD were determined by magnetic resonance imaging (MRI), hematoxylin and eosin staining and Alcian Blue staining in vivo. The levels of collagen II, aggrecan, transcription factor SOX9 (SOX9) and matrix metalloproteinase 13 (MMP‑13) were examined using western blot analysis and reverse transcription quantitative polymerase chain reaction (RT‑qPCR) in NP tissues and cells. The expression of C‑telopeptide of type II collagen (CTX‑II) in the sera or cell supernatants was determined by ELISA. In addition, the levels of phosphorylation of phosphoinositide 3‑kinase (PI3K) and protein kinase B (Akt), and the levels of apoptosis‑associated proteins and apoptosis ratio of NP cells were also determined by western blot analysis and flow cytometry, respectively. LY29400, an inhibitor of PI3K, was used to additionally confirm the signal pathway mechanism of BMP2 treatment in IDD. BMP2 significantly extended the interval between discs and alleviated the fibrous ring rupture and the decrease in the levels of glycoproteins in IDD rats, as determined by MRI and histological staining. Additionally, BMP2 treatment significantly upregulated the levels of collagen II, aggrecan and SOX9, but downregulated the levels of MMP‑13 and CTX‑II in IDD rats and NP cells in a dose‑dependent manner. Concurrently, recombinant human (rh)BMP2 pretreatment also significantly decreased the apoptosis ratio of interleukin (IL)‑1β‑treated NP cells via downregulating the level of cleaved caspase‑3 and upregulating the level of uncleaved poly (adenosine 5'‑diphosphate‑ribose) polymerase. It was demonstrated that rhBMP2 also significantly decreased the inflammatory response in NP tissues and cells, based on levels of IL‑6, TNF‑α and IL‑10. In addition, rhBMP2 inhibited cell apoptosis via upregulating the phosphorylation levels of the PI3K/Akt signaling pathway, and LY29400 pretreatment inhibited the effects of BMP2 in IL‑1β treated NP cells. BMP2 alleviated IDD via the PI3K/Akt signaling pathway by inhibiting NP cell apoptosis and decreasing the levels of matrix proteins.