Plants and animals coexist in diverse ecosystems through various relationships and interactions. Plants provide food and shelter for animals, while animals help in pollination, seed dispersal, and nutrient recycling. This interconnected web of relationships ensures the balance and stability of the ecosystem.