Until the 1700s, Sharia law was the main legal system throughout the Muslim world. In some Muslim countries such as Saudi Arabia and Iran, the whole legal systems still base their law on Sharia law. Islamic law is often criticised because it often has harsh penalties for crimes. A serious criticism is the judgement of the European Court that "sharia is incompatible with the fundamental principles of democracy".