What did Abraham Lincoln mean when he said four score and seven years ago?

He was referring to the Declaration of Independence (1776), which at the time he spoke was written 87 years ago (a "score" is 20, so four score = 80).
No doubt he was referring to 1776 - the Declaration of Independence.