IHTM12154 | Succession: Intestacy: Distributions under intestacy (Scotland): Ultimus haeres
From HM Revenue & Customs · Inheritance Tax Manual
If there are no surviving relatives (IHTM12153) the Crown as ultimus haeres takes the whole. The Inheritance Tax treatment is the same as for property that passes bona vacantia (IHTM12126).