To "relate to" someone means to feel comfortable with them, and to understand each other. People usually "relate to" each other by sharing information about themselves.
If someone always wanted to talk about sports, but you weren't interested in sports, you might have trouble relating to them. Here's another example:
I was glad to finally meet someone who I could relate to.