Switch to object mode using the `tab` key, then press <kbd>S</kbd><kbd>Z</kbd>`0` to scale the model on the z axis. The result is that the selected region will be scaled to the median of all the selected vertices, effectively flattening the selection.