 Until 1851, Montenegro was a theocracy, ruled by an Orthodox Bishop and a Senate, composed of representatives of Montenegrin tribes, which enjoyed a full autonomy.The first written law was passed in 1789 (and amended in 1803), during the rule of Bishop Peter I.It prescribed the death penalty for murder and treason and allowed three modes of execution