The gut microbiome is a collection of microorganisms and parasites in the gastrointestinal tract. Many factors can affect this community’s composition, such as age, sex, diet, medications, and environmental triggers. The relationship between the human host and the gut microbiota is crucial for the organism’s survival and development, whereas the disruption of this relationship can lead to various inflammatory diseases. Cannabidiol (CBD) and tetrahydrocannabinol (THC) are used to treat muscle spasticity associated with multiple sclerosis. It is now clear that these compounds also benefit patients with neuroinflammation. CBD and THC are used in the treatment of inflammation. The gut is a significant source of nutrients, including vitamins B and K, which are gut microbiota products. While these vitamins play a crucial role in brain and bone development and function, the influence of gut microbiota on the gut-brain and gut-bone axes extends further and continues to receive increasing scientific scrutiny. The gut microbiota has been demonstrated to be vital for optimal brain functions and stress suppression. Additionally, several studies have revealed the role of gut microbiota in developing and maintaining skeletal integrity and bone mineral density. It can also influence the development and maintenance of bone matrix. The presence of the gut microbiota can influence the actions of specific T regulatory cells, which can lead to the development of bone formation and proliferation. In addition, its metabolites can prevent bone loss. The gut microbiota can help maintain the bone’s equilibrium and prevent the development of metabolic diseases, such as osteoporosis. In this review, the dual functions gut microbiota plays in regulating the gut-bone axis and gut-brain axis and the impact of CBD on these roles are discussed.