An avocado is a fruit, specifically a berry. It develops from the flower of the avocado tree and contains a seed, which classifies it as a fruit in botanical terms. However, due to its savory flavor and culinary uses (like in salads or guacamole), it is often treated as a vegetable in cooking.
So, while it might be used as a vegetable in recipes, it is botanically considered a fruit.