Diversification means not putting all your eggs in one basket. Holding many investments, ideally ones that don’t all move together, reduces the impact of any single loss.
It can’t remove the risk of the whole market falling, but it does reduce the risk that is specific to one company or sector.
Diversification is sometimes called the only free lunch in investing.