An ancient star could help scientists understand how the building blocks of planets and life were first produced.