Investor.gov sums up diversification as "Don't put all your eggs in one basket." The strategy "involves spreading your money among various investments in the hope that if one loses money, the others will make up for those losses" (Investor.gov).
Here's the idea in numbers. Put $1,000 into one company's stock, and if it falls 50%, you have $500. Split the same $1,000 across 10 investments, and if one of them falls 50% while the others hold steady, you have $950.
Diversification can happen within a kind of investment (many companies instead of one) and across kinds. Dividing money among categories such as stocks, bonds and cash is called asset allocation (Investor.gov). Funds like index funds hold many investments at once.
Diversification lowers the risk of one big loss; it doesn't remove the chance of losing money.