Definition
A longer horizon allows you to ride out short-term swings and benefit from compounding, while a short horizon usually calls for safer assets. Matching investments to your horizon reduces the chance of being forced to sell low.
Worked example
Saving for retirement in 25 years allows a longer horizon than saving for a house deposit in two years.