Peter I stipulated that "princes related to us or married to our princesses always take precedence" and that when military officers of the army and navy were of the same rank, "the naval officer is superior at sea to the land officer; and on land the land officer is superior to the naval officer".