Stock Exchange

What is Stock Exchange? what is the role of shares in it?