There was no dominant potentate in Moray during the 12th and 13th centuries and the bishops ruled their territories with a great deal of independence, but this ended when King Robert I of Scotland elevated his nephew Thomas Randolph to the Earldom of Moray sometime between 12 April and 29 October 1312.