5 billion years ago, during the Eoarchean Era after a geological crust started to solidify following the earlier molten Hadean Eon.