The founding of the University of Edinburgh is attributed to Bishop Robert Reid of St Magnus Cathedral, Kirkwall, who left the funds on his death in 1558 that ultimately provided the endowment for the University of Edinburgh. The University was established by a Royal Charter granted by James VI in 1582. This was an unusual move at the time, as most universities were established through Papal bulls.