It is the medium for transfer of money from active to patient. lol I was kidding. Stock market is a place where securities(stocks, bonds, debentures,etc.) are bought & sold.
Suppose a business man has good profit margin and wants to expand the business then he can go to public and ask for money and in turn give the shares of his company.