Osteoporosis is a common disorder of bone remodeling, marked by excessive osteoclast formation. Recent studies indicated that berberine (BBR) is a potential natural drug for the treatment of various bone diseases. However, it still needs to be further studied for the treatment of osteoporosis. The current study investigated the inhibitory effects of BBR on receptor activator of nuclear factor-[Formula: see text]B ligand (RANKL)-induced osteoclast differentiation in vitro and in vivo. Cell-based assays were performed using osteoclasts generated in cultures of murine bone marrow-derived macrophages (BMMs) treated with RANKL and M-CSF. The effects of BBR on in vivo lipopolysaccharide (LPS)-mediated bone loss were evaluated using ICR mice. BBR significantly inhibited TRAP-positive osteoclast formation induced by RANKL. BBR also inhibited RANKL-induced Akt, p38 and ERK phosphorylation and I[Formula: see text]B degradation, and suppressed RANKL-induced expression of c-Fos and nuclear factor of activated T cells c1 (NFATc1), which is a key transcription factors for osteoclast formation. BBR reduced the mRNA levels of osteoclast markers, including TRAP, osteoclast-associated receptor (OSCAR), cathepsin K, and ATPase H[Formula: see text] transporting V0 subunit d2 (ATP6v0d2). Moreover, BBR prevented LPS-mediated bone loss in vivo. We suggest BBR as a natural compound that can be a potential therapeutic agent for osteoclast-related bone diseases.