Application of Islamic law by country recognize sharia; however, some that do recognize sharia use it as the basis for divorce, inheritance and other personal affairs of their Islamic population. And in countries where Islam is the predominant religion, sharia is fully instituted, including laws governing punishment for sin against Allah and Islam – not just divorce, inheritance and personal affairs. Sharia law in this article means the moral code and religious law of Islam. It includes criminal, civil, personal, economic and all aspects of law as revealed in Quran and Hadiths; in its strictest and most historically coherent definition, sharia is considered the infallible law
Islamic criminal law in Aceh and distribution, gambling, adultery, rape, sexual harassment, certain intimacies outside marriage, and certain homosexual acts. Punishments include caning, fines, and imprisonment. Caning is the only Sharia-based punishment that applied in Aceh; an attempt to introduce stoning in 2009 by local legislature was vetoed by Governor of Aceh Irwandi Yusuf. In 2016 Aceh processed 324 first instance court cases under Islamic criminal law, and carried out at least 100 caning sentences. Supporters of Islamic criminal law defend its legality under the special autonomy granted to Aceh, saying that it is covered by the freedom of religion of the people of Aceh.