A thermal inversion happens when the air close to the ground is colder than the air at higher altitudes. This is the opposite of what normally occurs. The inversion can "trap" air and pollutants near the ground, so things such as higher levels of smog can persist while the inversion persists. If the weather is cool, there's also a high possibility of fog persisting for the duration of the inversion.