Respiration in cyanobacteria can occur in the thylakoid membrane alongside photosynthesis, with their photosynthetic electron transport sharing the same compartment as the components of respiratory electron transport. While the goal of photosynthesis is to store energy by building carbohydrates from CO, respiration is the reverse of this, with carbohydrates turned back into CO accompanying energy release.
Cyanobacteria appear to separate these two processes with their plasma membrane containing only components of the respiratory chain, while the thylakoid membrane hosts an interlinked respiratory and photosynthetic electron transport chain. Cyanobacteria use electrons from succinate dehydrogenase rather than from NADPH for respiration.
Cyanobacteria only respire during the night (or in the dark) because the facilities used for electron transport are used in reverse for photosynthesis while in the light.