Archaebacteria are ancient bacteria that may have evolved immediately after the origin of life on Earth. They are the oldest "living fossils" and are a heterogeneous group found in extreme environments with high pH, temperature, or salinity. Archaebacteria show variation in cell wall structure and composition, containing proteins, glycoproteins, or polysaccharides instead of peptidoglycan. Their cell membranes also contain branched lipids that allow them to withstand extreme conditions. There are three main types: methanogens that produce methane in marshes; halophiles that thrive in highly saline solutions; and thermoacidophiles found in acidic hot springs that tolerate high heat and acidity.