BackgroundCyanobacteria and eukaryotic phytoplankton produce long-chain alkanes and generate around 100 times greater quantities of hydrocarbons in the ocean compared to natural seeps and anthropogenic sources. Yet, these compounds do not accumulate in the water column, suggesting rapid biodegradation by co-localized microbial populations. Despite their ecological importance, the identities of microbes involved in this cryptic hydrocarbon cycle are mostly unknown. Here, we identified genes encoding enzymes involved in the hydrocarbon cycle across the salinity gradient of a remote, vertically stratified, seawater-containing High Arctic lake that is isolated from anthropogenic petroleum sources and natural seeps. Metagenomic analysis revealed diverse hydrocarbon cycling genes and populations, with patterns of variation along gradients of light, salinity, oxygen, and sulfur that are relevant to freshwater, oceanic, hadal, and anoxic deep sea ecosystems.ResultsAnalyzing genes and metagenome-assembled genomes down the water column of Lake A in the Canadian High Arctic, we detected microbial hydrocarbon production and degradation pathways at all depths, from surface freshwaters to dark, saline, anoxic waters. In addition to Cyanobacteria, members of the phyla Flavobacteria, Nitrospina, Deltaproteobacteria, Planctomycetes, and Verrucomicrobia had pathways for alkane and alkene production, providing additional sources of biogenic hydrocarbons. Known oil-degrading microorganisms were poorly represented in the system, while long-chain hydrocarbon degradation genes were identified in various freshwater and marine lineages such as Actinobacteria, Schleiferiaceae, and Marinimicrobia. Genes involved in sulfur and nitrogen compound transformations were abundant in hydrocarbon producing and degrading lineages, suggesting strong interconnections with nitrogen and sulfur cycles and a potential for widespread distribution in the ocean.ConclusionsOur detailed metagenomic analyses across water column gradients in a remote petroleum-free lake derived from the Arctic Ocean suggest that the current estimation of bacterial hydrocarbon production in the ocean could be substantially underestimated by neglecting non-phototrophic production and by not taking low oxygen zones into account. Our findings also suggest that biogenic hydrocarbons may sustain a large fraction of freshwater and oceanic microbiomes, with global biogeochemical implications for carbon, sulfur, and nitrogen cycles.Video AbstractSupplementary InformationThe online version contains supplementary material available at 10.1186/s40168-023-01537-7.