Baking powder is a mixture of baking soda (NaHCO3) and an edible acid like tartaric acid.
Baking powder on heating produces carbon dioxide gas which causes bread or cake to rise making it soft and spongy.
NaHCO3 + H+ + Heat → CO2 + H2O + Sodium salt of tartaric acid