Bacteria do not have chloroplasts but photosynthesis takes place within the cell directly. Some bacteria contain pigment like bacteriochlorophylls while others like cyanobacteria have thylakoid membranes which resemble those of chloroplasts and have chlorophyll.