You have to signal a rectangle made of blocks, so that the 4 corners of the rectangle are blocks of the same color. If you succed they will disappear and new blocks will appear at their place. You finish and pass to next level when there's no more visible faces.
Click and drag from one bloc to a second one to form a rectangle. For this rectangle to be acceptable, its 4 corners need to have the same color.