The early universe contained only the lightest elements, hydrogen and nitrogen  Heavier elements, such as carbon, were only formed in stellar nuclear reactions and diverged when stars exploded  A layer of recently discovered nebulae contained billions of carbon
It was formed years ago, when the age of the universe was less than two billion years
The carbon in the gas cloud later becomes part of the constituent stars.