Why do you add vanilla to a cake?

* Flavor: Vanilla is a popular flavoring agent because it is sweet, creamy, and versatile. It is often used in combination with other flavors, such as chocolate, fruit, or nuts.

* Aroma: Vanilla extract has a strong, characteristic aroma that is pleasant and appetizing. It can help to improve the overall flavor of a cake by making it more rich and complex.

* Color: Vanilla extract can also help to improve the color of a cake. It can give cakes a slightly golden-brown hue that is visually appealing.

* Moisture: Vanilla extract can help to keep cakes moist and prevent them from drying out. This is because it contains glycerin, which is a humectant that absorbs and retains moisture.

* Emulsifier: Vanilla extract can act as an emulsifier, which helps to bind ingredients together and prevent them from separating. This can be especially helpful in cakes that contain multiple types of liquids, such as milk, eggs, and oil.

In addition to these benefits, vanilla is also a natural flavoring agent that is gluten-free, dairy-free, and vegan. This makes it a great choice for people who have dietary restrictions.