Part of learning it is.. It is used at the beginning of noun groups.
The is usually pronounced (ðə ) before a consonant and (ði ) before a vowel, but pronounced (ði ) when you are.. This english grammar class shows the 9 rules of ar.