The constitution of the United Kingdom is an uncodified constitution made up of various statutes, judicial precedents, convention, treaties and other sources. It developed gradually in response to various crises. The British monarchy emerged during the Middle Ages and became a constitutional monarchy or ceremonial monarchy by the twentieth century. At the same time, Parliament developed into a representative body exercising parliamentary sovereignty.