Guacamole naturally oxidizes and turns brown when exposed to air. To prevent this, press a layer of plastic wrap directly onto the surface of the guacamole, ensuring there is no air trapped. Another method is to leave the avocado pits in the guacamole as they can help slow down the browning process.