yes werg omitted the part about an irreducible being a non unit.
in general think of how you want to understand a domain: you want to know how it differs from a field.
so first basic question: what are all the units?
second question: what are all the non units? hopefully there is some way to organize the non units, and one basic way is to define irreducibles, then hope to factor other elements into those.
so to undertstand non units we define irreducibles.
then we try to prove that under various simple hypotheses we can factor every non unit into irreducibles (e.g. noetherian domain)
then we hope for some uniqueness statement. obviously anything can be factored by any unit, so any uniqueness statement must akllow for this non uniqueness due to units.
sow ,e hope for a statement that factorization into irreducibles not only exists, but is unique except for an equivalence relation where multiplying by a unit is considered leaving things equivalent.
so we break the domain into two disjoint sets, units and non units. then the group of units acts on the multiplicatively closed set of non units. we consider elements of the same the equivalence class as "associates". then we try to factor non units into irreducibles, uniquely up to associates, which is not always possible.
i believe it is possible if the domain is noetherian, and it is possible to define gcd's of any two elements.
so a key concept is that of a gcd.