The correct response is:
Iron oxides form when oxygen, a product of photosynthesis, is in the atmosphere.
This is because iron oxides in rocks indicate that oxygen was present in the environment, which is a byproduct of photosynthesis performed by cyanobacteria and other photosynthetic organisms.