The word, dharma, comes from the Sanskrit root word dham, which means “to uphold” or “to support.” In the early Vedas and ancient Hinduism, dharma referred to the cosmic law, which created the ordered universe from chaos. Later, it was applied to other contexts, including human behaviors and ways of living that prevent society, family and nature from descending into chaos. This included the concepts of duty, rights, religion and morally appropriate behavior.
It is said that all beings must accept their dharma for order and harmony to exist in the world. If an individual is following their dharma, they are pursuing their truest calling, serving all other beings in the universe by playing their true role. To Hindus, all beings have their own dharma: the sun must shine and the bees must make honey.
In Buddhism, the added layer of meaning is that dharma includes the idea of acting in accordance with the teachings of the Buddha and the Four Noble Truths. The wider meaning of the term even encompasses the result of acting in this “right way," which is enlightenment.