Radiocarbon (carbon-14) is produced in the upper atmosphere when cosmic ray neutrons collide with nitrogen-14 nuclei, causing a nuclear reaction that converts nitrogen-14 to carbon-14. This is a well-documented nuclear physics process. The other options incorrectly attribute it to UV light, solar radiation on CO2, or lightning.