What is the stock market?

The stock market works by having licensed stock brokers trade shares on a stock exchange for buyers and sellers.