The legend graphic is used to provide an in map summary of the visible feature layers. It is able to look at your style and show categories of data.
The legend graphic is particularly useful when printing a map onto paper.