Citric acid is derived from citrus fruits and is mainly used as a preservative. It it also used in small amounts to adjust the pH of products.