Refers to 'a few years ago' — some years before the present, without specifying an exact number.
数年前に引っ越してきたが、駅は昔より便利になった。
I moved here a few years ago, and the station has become more convenient than before.
この建物は数年前に改修されたばかりだ。
This building was renovated just a few years ago.
数年前の写真を見返すと、懐かしい気持ちになる。
Looking back at photos from a few years ago makes me feel nostalgic.