The study of the interactions between aquatic organisms and their environment, including the biotic and abiotic factors.