A stock exchange is a regulated marketplace where financial securities such as stocks, bonds, and derivatives are bought and sold. It provides a platform for companies to raise capital by issuing shares to investors and allows investors to trade these securities. Stock exchanges play a crucial role in the economy by facilitating the efficient allocation of capital and providing liquidity to investors.