Short squeezes result when short sellers cover their positions on a stock. This can occur if the price has risen to a point where short sellers must make margin calls, or more loosely if short sellers simply decide to cut their losses and get out. This may happen in an automated manner for example if the short sellers had previously placed stop-loss orders with their brokers to prepare for this possibility. Since covering their positions involves buying shares, the short squeeze causes an ever further rise in the stock's price, which in turn may trigger additional margin calls and short covering.
Short squeezes are more likely to occur in stocks with small market capitalization and small floats, although can involve large stocks and billions of dollars, as happened in October 2008 when a short squeeze temporarily drove the shares of Volkswagen on the Xetra DAX from €210.85 to over €1000 in less than two days, briefly making it the most valuable company in the world.
The opposite of a short squeeze is the less common long squeeze.