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.
His specific propaganda was to stop animal killing. So animal killing is recommended in the Vedic literature. Therefore people wanted to give him Vedic evidences that "In the Vedic literature animal sacrifice is recommended under certain condition. So how do you preach? You are Hindu and you are followers of Vedas. Why you are preaching nonviolence?" Therefore he had to give up Hindu religion. He said that "I do not care for your Vedas. It is my propaganda to stop animal killing. So if you follow me, then you must stop animal killing." Ahiṁsā paramo dharmaḥ. So later on, of course, Lord Buddha was patronized by a great emperor, Aśoka, and therefore practically all Indian population turned to be Buddhist, with few exceptions.