Relays are servers that store notes from users. So when you write a note you send it to the relays your client is connected to.
Relays also forward these notes to other users, so they can now read notes written to the relays they are connected.
Im tired, hope this makes sense😅