In 1722, Peter created a new order of precedence known as the Table of Ranks. Formerly, precedence had been determined by birth. To deprive the Boyars of their high positions, Peter directed that precedence should be determined by merit and service to the Emperor. The Table of Ranks continued to remain in effect until the Russian monarchy was overthrown in 1917.