Scientists study how basic chemical compounds on early Earth gradually formed the complex molecules that sparked life.