Geothermal energy contributes to ecosystems in a positive way by producing clean and renewable energy without emitting greenhouse gases or other pollutants that can harm the environment. This helps to reduce the reliance on fossil fuels, thereby decreasing air.