Periodontitis, a chronic infectious disease in periodontal tissues, is characterized by an imbalance of alveolar bone resorption and remodeling, which eventually results in tooth loosening and even tooth loss. The etiology of periodontitis is polymicrobial synergy and dysbiosis, in which Porphyromonas gingivalis (P. gingivalis) is one of the primary pathogens responsible for periodontitis progression. The interplay of EphrinB2/EphB4 is crucial for osteoblast−osteoclast communication during bone remodeling and healing. This study investigates the mechanism of EphB4/EphrinB2 transduction modulating osteogenesis inhibition and bone resorption in periodontitis induced by P. gingivalis. An in vivo model of chronic periodontitis provoked by P. gingivalis was constructed, the inflammation and bone resorption were evaluated. The expression of EphB4 and EphrinB2 proteins in periodontal tissues was detected, which was also evaluated, respectively, in osteoblasts and osteoclasts infected with P. gingivalis in vitro. Then, a simulated coculture model of osteoblasts and osteoclasts was established to activate the forward and reverse pathways of EphB4/EphrinB2 with P. gingivalis infection. This study showed that P. gingivalis infection promoted alveolar bone resorption in rats and enhanced EphB4 and EphrinB2 expression in periodontal tissues. EphB4 and molecules associated with osteogenesis in osteoblasts infected with P. gingivalis were inhibited, while EphrinB2 and osteoclast differentiation-related markers in osteoclasts were activated. In conclusion, this study suggested that EphB4/EphrinB2 proteins were involved in alveolar bone remodeling in the process of periodontitis induced by P. gingivalis infection. Moreover, attenuated EphB4/EphrinB2 with P. gingivalis infection weakened osteoblast activity and enhanced osteoclast activity.