The definite article is used...
before singular and plural nouns when the noun is specific or particular
to refer to something that has already been mentioned or that is clear from the context or situation.
The indefinite artice is used...
a boat a car a pencil
a uniform, a university, a European
an apple an elephant an insect