Type exit at the command line and press Return.
Or, choose Exit from the Terminal Window menu.
Or, choose Close from the Window menu (displayed through the button at the upper left of the window frame).
Typing exit at the command line is the preferred method of closing a Terminal window. The other two methods don't terminate any background processes you may have started, which can sometimes cause problems.