The team believes the diamond layer could have formed through two processes: the crystallization of a carbon-rich magma ocean and the progressive crystallization of Mercury's initially liquid core.