The cell membrane separates a cell from its environment and regulates what passes in and out through selective permeability. It helps maintain homeostasis through balancing pH, temperature, glucose, and water levels via active and passive transport. Passive transport moves particles down their concentration gradient without energy, through diffusion, facilitated diffusion, and osmosis. Active transport moves particles against their gradient by using ATP energy and protein pumps.