Objective To study the changes of receptor activator of nuclear factor-κB ligand (RANKL, an osteoclastogenesis-promoting factor) and osteoprotegerin (OPG, the decoy receptor for RANKL), oxidative stress and bone turnover markers in obstructive sleep apnea-hypopnea syndrome (OSAHS), in order to understand the potential mechanisms underlying bone loss in OSAHS patients. Methods Ninety-eight male patients with OSAHS, confirmed by polysomnography (PSG) study, were enrolled. The patients were divided into mild-moderate groups and severe groups. Forty-two male subjects who were confirmed as not having OSAHS served as the controls. The subjects’ bone mineral density (BMD) and T-score were assessed in lumbar spine and femoral neck using dual-energy X-ray absorptiometry. Blood samples were collected from all subjects for measurement of RANKL, OPG, the bone formation marker bone-specific alkaline phosphatase (BAP), the bone resorption marker tartrate-resistant acid phosphatase-5b (TRAP-5b), total antioxidant capacity (TAOC). Twenty-eight severe OSAHS patients accepted continuous positive airway pressure (CPAP) treatment voluntarily. After 6 months, PSG was conducted, and serum RANKL, OPG, TAOC, TRAP-5b, BAP was measured after six months treatment. Results The BMD, T-score of the femoral neck and the lumbar spine were significantly lower in OSAHS patients as compared to the control group. The level of BAP was significantly decreased in the OSAHS group as compared to the control group, and there was no significant difference in TRAP-5b level between two groups. As compared with the control group, levels of OPG, TAOC and the OPG/RANKL ratio decreased significantly. None of these parameters (BMD, T-score, RANKL, OPG, TRAP-5b, BAP) showed significant difference between patients with mild-moderate and severe OSAHS group. Correlation analysis showed that the apnea hypopnea index and oxygen desaturation index were correlated with TAOC. BAP level was positively correlated with TAOC and lowest pulse oxygen saturation. The serum level of TAOC was lower in the OSAHS group after CPAP therapy, but the levels of RANKL, OPG, TRAP-5b, BAP were not different. As compared with the OSAHS group before CPAP therapy, the BMD of the femoral neck and the lumbar spine were not significant difference. Conclusions In patients with OSAHS, the oxidative stress response is enhanced, and imbalance of OPG/RANKL is shifted, which participates in the occurrence of osteoporosis. The oxidative stress injury of severe OSAHS patients was relieved after non-invasive ventilation treatment, but the effect of oxidative stress response on bone metabolism still needs further evaluation.