A stock represents a means for companies to raise capital outside of a regular revenue stream. When companies sell shares of stock, they sell a small piece of ownership for interested investors to buy. In doing so, investors get voting rights, dividends, and any gains from increases on the stock market.