Cyanobacteria are intricately organized, incorporating an array of internal thylakoid membranes, the site of photosynthesis, into cells no larger than other bacteria. They also synthesize C15-C19 alkanes and alkenes, which results in substantial production of hydrocarbons in the environment. All sequenced cyanobacteria encode hydrocarbon biosynthesis pathways, suggesting an important, undefined physiological role for these compounds. Here, we demonstrate that hydrocarbon-deficient mutants of Synechococcus sp. PCC 7002 and Synechocystis sp. PCC 6803 exhibit significant phenotypic differences from wild type, including enlarged cell size, reduced growth, and increased division defects. Photosynthetic rates were similar between strains, although a minor reduction in energy transfer between the soluble light harvesting phycobilisome complex and membrane-bound photosystems was observed. Hydrocarbons were shown to accumulate in thylakoid and cytoplasmic membranes. Modeling of membranes suggests these compounds aggregate in the center of the lipid bilayer, potentially promoting membrane flexibility and facilitating curvature. In vivo measurements confirmed that Synechococcus sp. PCC 7002 mutants lacking hydrocarbons exhibit reduced thylakoid membrane curvature compared to wild type. We propose that hydrocarbons may have a role in inducing the flexibility in membranes required for optimal cell division, size, and growth, and efficient association of soluble and membrane bound proteins. The recent identification of C15-C17 alkanes and alkenes in microalgal species suggests hydrocarbons may serve a similar function in a broad range of photosynthetic organisms.