Sharia law is the main source of Qatari legislation according to Qatar's Constitution. In practice, Qatar's legal system is a mixture of civil law and Sharia law. Sharia law is applied to laws pertaining to family law, inheritance, and several criminal acts (including adultery, robbery and murder). In some cases in Sharia-based family courts, a female's testimony is worth half a man's. Codified family law was introduced in 2006. Islamic polygamy is allowed in the country.