The endosymbiotic origin of mitochondria and chloroplasts may have involved engulfing of one prokaryotic cell inside another cell, forming the double membrane of these organelles. These organelles also contain their own prokaryote-like DNA.