I believe you are referring to air pollution and the greenhouse effect.
Energy from the sun travels freely through the atmosphere to the ground. At this point the energy is short wave radiation. Short wave radiation does not heat the atmosphere it only heats the solid objects it comes into contact with, like your skin or the ground. At this point the ground gets warmer and as it gets warmer it releases heat or long wave radiation. This heat warms the atmosphere, and unlike short wave radiation, it does not pass freely through the atmosphere. Certain trace gases in the atmosphere retain this heat.
There is no problem with these gases retaining this heat. It is all part of the solar balance, which is how the Earth radiates the same amount of energy into space that it receives from the sun.
Basically it is like a pressure cooker. If the heat remains constant on a pressure cooker it would get really really hot, because more heat would be being applied and none would be leaving. Now if you have a valve on the pressure cooker you could open it to the point that the same amount of heat that is coming into the cooker is leaving the cooker through the valve and the temperature would remain constant.
Now the trace gases I referred to before are things like CO2 and CH4 which are both considered air pollution. The problem is when the amount of these gases increase. The effect would be the same as the effect that closing the valve a little on the pressure cooker. The heat would go up.
The reason it is referred to as the greenhouse effect and those gases are greenhouse gases is that like a greenhouse, sunlight shines freely though the glass but the heat that is created is trapped by the glass.
I hope this is understandable and that it answers your question.
Humans change ecosystems in many ways, such as habitat destruction, pollution, introduction of invasive species, and overexploitation of species.
The most common way that humans damage ecosystems is by destroying habitat. For example, we remove trees, change the flow of water, and change grasslands into farms. These practices can lead to local extinctions of species and cause other species to migrate to new areas.
We also pollute the air and water, leading to many effects on ecosystems. One major effect of air pollution is the accumulation of greenhouse gases in the atmosphere. These gases trap heat in Earth's atmosphere, warming the planet and causing global climate change.
Introducing species into a new ecosystem can have serious consequences. For example, invasive clam species are dramatically changing the San Francisco bay as they outcompete local populations and enjoy a population explosion without any predators.
Overexploitation reduces population sizes, affecting interactions within an ecosystem. Humans overexploit species by overhunting, overfishing, unsustainable logging, and unregulated pet trade (see image below).