Freedom of religion in Somalia
Freedom of religion in Somalia refers to the extent to which people in Somalia are freely able to practice their religious beliefs, taking into account government policies, non-state actors, and societal attitudes toward religious groups. Due to the Somali Civil War, the enforcement of laws pertaining to religion by the various autonomous governments in the region is inconsistent.
Sunni Islam is the state religion in Somalia. Generally, the judiciary in most areas relies on xeer (traditional and customary law), sharia, and the penal code. In many regions, activity by Salafi groups further restricts religious freedom, as individuals are afraid of reprisal.
Islam is a core part of Somali national identity. In 1961 Islam was declared the state religion and subsequent governments have maintained this policy. The Somali Democratic Republic, which existed from 1969 to 1991, propagated a combination of Islam and Marxism. Following the collapse of this government, Somalia entered a prolonged civil war which has continued on and off since the 1990s. The official transitional national government has continued to uphold Islam as the state religion, and further established that the Somali legal code is based on principles of Islamic law. The region of Somaliland, which seceded at the outset of the civil war and remained autonomous but internationally unrecognized until 2025, established its own constitution founded on similar religious precepts. Activity by various Islamist insurgent groups further limits religious freedom, as individuals who do not comply with these groups' interpretations of Islamic law are targeted for reprisals.