A CAM plant uses Crassulacean acid metabolism (CAM) as an adaptation for arid conditions. These plants only open their stomata at night to prevent their leaves from losing water during the day. The stomata need to be opened at night to collect carbon dioxide which is necessary for photosynthesis. This carbon dioxide is stored as malic acid and used during the day for photosynthesis. Examples of CAM plants include pineapples (pictured), cacti, and orchids.