To express how long ago something happened, we use hacer.
Hace dos años, fui a España. –> Two years ago, I went to Spain.
The construction literally means “It makes two years…”
Notice that we always use singular, even when the time is plural, because we’re using an existential subject.
Here are some examples for you to learn from: