What is sharia?
In short
Sharia means “path” or “way”. For Muslims it is the guidance God has given for the whole of life, including worship, ethics, family, trade and justice, drawn from the Quran and the Prophet's Sunnah. It is not a single written code. Islamic law (fiqh) is the human scholarly effort to understand and apply it, which is why there are different schools of law that sometimes disagree.
Sharia and fiqh
Muslims distinguish between sharia, God's guidance, and fiqh, the jurists' understanding of it. Sunni jurists derive rulings from the Quran, the Sunnah, scholarly consensus (ijmaʿ) and analogy (qiyas); Twelver Shia jurists use the Quran, the Sunnah (which for them includes the teachings of the Imams), consensus and reason (ʿaql). Four Sunni schools survive today (Hanafi, Maliki, Shafi'i and Hanbali), alongside the Ja'fari school of Twelver Shia, the Zaydi school and the Ibadi school. Most of what sharia covers is everyday: prayer, fasting, charity, food, marriage, inheritance, honest contracts and how to treat people.
What it is for
Classical scholars, al-Ghazali and later al-Shatibi most fully, described the aims (maqasid) of the sharia as protecting religion, life, intellect, family lineage and property. The Quran says that God wants ease for people, not hardship. Muslims experience sharia less as a rulebook imposed from outside than as a path that shapes the heart through daily practice.
The hard parts, stated plainly
Classical Islamic law also includes fixed criminal penalties (hudud) for a small number of offences: among them amputation of the hand for theft, flogging for certain sexual offences and for slander, and, in classical law, stoning for adultery by a married person and death for apostasy. Jurists set very demanding standards of proof and taught that genuine doubt should avert these penalties, so in many periods they were rarely carried out. But they were part of the law, and a few states apply versions of them today. Classical law also contains rulings that treat men and women, and Muslims and non-Muslims, differently. It would not be honest to describe sharia without saying so.
Living it today
For most Muslims, following the sharia means praying, fasting, giving, keeping promises and dealing honestly. Muslims living as citizens of non-Muslim countries are, in mainstream scholarly teaching, bound to keep the laws of the country as part of honouring their agreements, unless a law would force them to commit a sin.
Sources
ثُمَّ جَعَلۡنَٰكَ عَلَىٰ شَرِيعَةٖ مِّنَ ٱلۡأَمۡرِ فَٱتَّبِعۡهَا وَلَا تَتَّبِعۡ أَهۡوَآءَ ٱلَّذِينَ لَا يَعۡلَمُونَ ﴿١٨﴾
Then We set you [Prophet] on a clear path [sharīʿa] in matters of faith, so follow it, and do not follow the desires of those who do not know.
IslamLens paraphrase of the meaning, not a translation
Transliteration
Thumma jaʿalnaka ʿala shareeʿatin mina alamri faittabiʿha wala tattabiʿ ahwaa allatheena la yaʿlamoona
شَهۡرُ رَمَضَانَ ٱلَّذِيٓ أُنزِلَ فِيهِ ٱلۡقُرۡءَانُ هُدٗى لِّلنَّاسِ وَبَيِّنَٰتٖ مِّنَ ٱلۡهُدَىٰ وَٱلۡفُرۡقَانِۚ فَمَن شَهِدَ مِنكُمُ ٱلشَّهۡرَ فَلۡيَصُمۡهُۖ وَمَن كَانَ مَرِيضًا أَوۡ عَلَىٰ سَفَرٖ فَعِدَّةٞ مِّنۡ أَيَّامٍ أُخَرَۗ يُرِيدُ ٱللَّهُ بِكُمُ ٱلۡيُسۡرَ وَلَا يُرِيدُ بِكُمُ ٱلۡعُسۡرَ وَلِتُكۡمِلُواْ ٱلۡعِدَّةَ وَلِتُكَبِّرُواْ ٱللَّهَ عَلَىٰ مَا هَدَىٰكُمۡ وَلَعَلَّكُمۡ تَشۡكُرُونَ ﴿١٨٥﴾
The month of Ramadan is the month in which the Quran was sent down: guidance for people, with clear signs of guidance and of the criterion between right and wrong. So whoever of you is present for the month should fast it; and whoever is ill or on a journey should make up the same number of other days. God wants ease for you and does not want hardship for you. He wants you to complete the number of days and to proclaim God's greatness for having guided you, so that you may be grateful.
IslamLens paraphrase of the meaning, not a translation
Transliteration
Shahru ramadana allathee onzila feehi alquranu hudan lilnnasi wabayyinatin mina alhuda waalfurqani faman shahida minkumu alshshahra falyasumhu waman kana mareedan aw ʿala safarin faʿiddatun min ayyamin okhara yureedu Allahu bikumu alyusra wala yureedu bikumu alʿusra walitukmiloo alʿiddata walitukabbiroo Allaha ʿala ma hadakum walaʿallakum tashkuroona
What is lawful is clear and what is forbidden is clear, and between them lie unclear matters that many people do not know; whoever steps back from them protects their faith. In the body there is a piece of flesh: if it is sound, the whole body is sound, and if it is corrupt, the whole body is corrupt. It is the heart.
Summary in our words, not a translation.
Open source text ↗Al-Muwafaqat fi Usul ash-Shari'a · The Reconciliation of the Foundations of Islamic Law
A classic study of the aims (maqasid) of the sharia: preserving religion, life, intellect, lineage and property.