When you die. They oversee the preparing of a body for burial or cremation. They do the embalming, washing and dressing of the body.
Don't confuse them with a coroner or medical examiner, who examine and perform autopsies on a deceased body to determine cause and method of death. Once this is done, the corpse is given to a funeral home where a mortician performs their job.