The purpose of marriage is primarily for procreation, as it ensures the continuation of the human race through the birth of offspring.