The stock market is a marketplace where investors buy and sell shares of publicly traded companies. The main functions are to give companies a way to raise capital and investors the opportunity to make profits. It’s also an important indicator of how strong the economy is.