There is used when you refer to a place. It is an adverb; it is the opposite of 'here'. It can also be used as a pronoun which introduces a sentence or clause.
E. g.
Their is a pronoun which is used to show possession. (It is like my, your, our etc. )
E. g.
They're on the other hand is a contraction of the words 'they are'.
E. g.
If you have trouble remembering it try these tricks; their has the word 'her' in it which indicates possession. There has the word 'here' in it which means location and they're has an apostrophe in the middle which indicates that it is made up of two words 'they are'.
Doubts on this article