It turns brown due to oxidation. When avocados are cut or mashed, an enzyme called polyphenol oxidase is released, which causes the avocado flesh to react with oxygen in the air and turns the surface of the avocado flesh brown.