Dharma means the rules and regulations as they are prescribed in the scriptures. Just like state laws. State laws, there are some rules and regulation in the lawbook, in the statute book of the particular state. Similarly, dharma, another meaning of dharma is, it is the law of God. Maybe differently described in different countries according to different climatic condition or situation. But in every religious scripture the obedience to God is instructed. That is a fact. No scripture says that there is no God and you are independent. Either it is Bible or Koran or Vedas or even Buddhist literature, Buddhist scripture.
Generally, according to Buddha philosophy, there is no soul, no God. But they have to obey Lord Buddha. So there is also God because Lord Buddha is accepted by the Vedic literature. Just in the Śrīmad-Bhāgavatam there is a great list of incarnations, and Buddha, Lord Buddha, is accepted as one of the incarnations who would appear. It is in future tense. Kīkaṭeṣu bhaviṣyati. Buddho nāmnā añjana-sutaḥ kīkaṭeṣu bhaviṣyati. Now bhaviṣyati means "He will appear in future." Because Śrīmad-Bhāgavatam was compiled by Vyāsadeva five thousand years ago, and Lord Buddha appeared about two-thousand-six-hundred years ago. Therefore before the appearance of Lord Buddha the Śrīmad-Bhāgavatam was written. This is called śāstra. Because there is accurate date and accurate calculation. Everything is there. Buddho nāmnā añjana-sutaḥ kīkaṭeṣu bhaviṣyati. The mother's name also given there, añjana-suta. And kīkaṭeṣu means Gayāpradesh. In India there is a province called Bihar. In that province there is a district Gayā. In that district Lord Buddha appeared. Lord appeared in Bihar province. He was kṣatriya, He was Hindu, and He propagated this religion of nonviolence, Buddhism.