Y replaces a place, or an object with à referring to a thing, that has already been named, and it stands before the verb, like the object pronouns: Je vais à Paris → J'y vais — “I am going there”.
What it expresses
- A place — what à, en, dans, chez or sur with a noun names: Tu vas à la plage ? — Oui, j'y vais — “Are you going to the beach? — Yes, I'm going there”, Il habite en Italie ? — Oui, il y habite — “Does he live in Italy? — Yes, he lives there”. Y means both “to that place” and “in that place”: the verb shows which. Words of place are in the topic adverbs of place.
- An object with à referring to a thing or an idea: Je pense à mon examen → J'y pense — “I'm thinking about it”, Je réponds à la lettre → J'y réponds — “I'm answering it”. This is how the object is replaced after penser à “to think about”, répondre à “to answer”, réfléchir à “to think something over”, faire attention à “to pay attention to”, jouer à “to play (a game)”. Which verbs take à is the subject of direct and indirect objects.
In English y is translated by its meaning — “there”, “about it”, “to it” — or not translated at all.
In il y a “there is, there are” it is the same word y, but there it has no meaning of its own.