Pita bread gets its pocket-like shape from being baked in a very hot oven with yeast. The high temperature causes the yeast to release a gas which causes the dough to puff up and form a pocket.