An index fund is a fund that tries to copy a market index rather than pick winners. Investor.gov explains that index funds "follow a passive investment strategy designed to achieve approximately the same return as a particular index before fees" (Investor.gov).
An index is a list of investments used to measure part of the market, such as a group of large U.S. companies. An index fund buys the stocks or bonds in that list. It can be a mutual fund or an ETF.
Investor.gov notes that passive management "usually translates into less trading of the fund's portfolio," which can mean lower costs and lower fees than actively managed funds. Fees matter: on $10,000, a 1% yearly fee is $100, while a 0.1% fee is $10.
Because an index fund holds every investment in its index, it spreads money widely, a form of diversification. It also follows its index down when the market falls.