Why does Yeast Make Things Rise?

When yeast is mixed with a sugar or acid it starts to produce gases. The gases act as a leavening agent and makes dough rise by making little gas pockets.