The “stock market” is a semi-loose term. It is the term used to refer to the many exchanges and markets where there is trading and issuing of equity (company stock), bonds, and any other types of securities. The stock market is many times the symbol of a “free market”. One of its main purposes is to provide companies with capital.
There are many stock exchanges, including the New York Stock Exchange, and the NASDAQ.