To understand how short squeezes occur, we first have to understand how shorting a stock works. To sell a stock short, an investor must first borrow the shares. They then consequently sell in the open market. At an agreed-upon time, the investor will buy back the shares in order to return them to the original lender.