Producers (like plants) capture solar energy through photosynthesis, converting light energy into chemical energy in organic compounds. This energy then flows through the ecosystem to consumers and decomposers.