The SPDR S&P 500 (SPY) is an Exchange Traded Fund (ETF) that tracks the performance of one of the most popular US indices, the Standard & Poor's 500 (S&P 500).
Stock market indices represent a subset of the broader stock market, and are used to measure and track the performance of that specific subset.