What does the process of photosynthesis produce that all living organisms need?

organic compounds especially sugars- the source for energy for most living organisms not all.