A tree is an example of a biotic factor in an ecosystem because it is a living organism that interacts with other living things. Biotic factors include all the living components of an ecosystem, such as plants, animals, fungi, and microorganisms, which influence the environment and each other. In contrast, sunlight, water, and temperature are abiotic factors, as they are non-living elements that affect the ecosystem but do not possess life. Trees play a crucial role in providing habitat, food, and oxygen, making them essential components of ecological systems.