Cyanobacteria are primary producers in aquatic ecosystems, responsible for oxygen production through photosynthesis.