When you buy a stock the prices go up or down depending on how well a company does. If that company fucks up and people sell their stocks the price will drop. If the company performs well more people will want to acquire the stocks. Generally people wait till prices go up then they sell them, but if too many people sell at once the prices will crash. There are also a shit ton of laws involving the stock market go wikipedia that shit