Ответ:

Выбираем an, потому что old начинается с гласного звука.

There is an old castle near the village.