Baking powder is a leavening agent used in baking to produce carbon dioxide gas, which causes dough and batters to rise and become light and porous. It contains an acid and a base, typically cream of tartar and baking soda, which react when moistened and heated to create the desired leavening effect.