Tap anywhere in the open space to grow a wall out from that point in both directions. When it reaches the edges it seals off the space, and any region without a ball gets claimed. Fill 75% to clear the level. A ball hitting a wall while it is still growing breaks it and costs a life.
Swipe to choose the wall direction as you place it, or use the button. On a keyboard, Space flips the direction.