Plants and animals coexist in ecosystems through various interactions and dependencies. Plants provide oxygen, food, and habitats for animals, while animals help in pollination, seed dispersal, and nutrient cycling for plants. This interdependence creates a balanced ecosystem where each species plays a vital role in maintaining the overall health and sustainability of the environment.