Variable gases affect climate

How do variable gases affect climate?   what are some reasons for different types of variable gases in our atmosphere?