A stock exchange is a marketplace where shares of various companies are bought and sold.