The S&P 500 index dropped by more than 20%, while major indexes around the world also fell sharply.