Secular government?

secular state is an idea pertaining to secularity, whereby a state is or purports to be officially neutral in matters of religion, supporting neither religion nor irreligion. A secular state claims to treat all its citizens equally regardless of religion, and claims to avoid preferential treatment for a citizen based on their religious beliefs, affiliation or lack of either over those with other profiles.

Secular states do not have a state religion (e.g. an established religion) or an equivalent, although the absence of an established state religion does not necessarily imply that a state is fully secular or egalitarian in all respects. For example,some states that describe themselves as secular have religious references in their national anthems and flags, or laws which advantage one religion or another.

However, a problem arises when it comes to the development of laws which are to govern everyone within any nation. Since laws generally come from a moral consensus, what happens when a moral position held by the state disagrees with religious factions within the state? Whose view is ultimately going to rule?

So the question then arises as to whether it is even possible for a secular state to exist. This is especially interesting when secularism itself is considered an atheistic religion. Who will ultimately determine what is right or wrong within a pluralistic state composed of many religions?