Well, it all starts with the "producers." This is when plants use photosynthesis and gets solar energy and converts it into chemical energy so it can be stored in a carbon compound. Then herbivores and omnivores eat those plants and get that energy. Then carnivores and omnivores eat the herbivores and omnivores that are the plants and the energy is transferred to them. And then energy is also release through all those phases with things like respiration, cellular reactions, decay, etc..