A greenhouse gas is a gas in the Earth's atmosphere that absorbs and emits radiant energy, trapping heat and warming the planet. These gases play a crucial role in the greenhouse effect, which is the process that regulates the Earth's temperature and makes it habitable for life.