When diabetes mellitus is a cause of death, the type of diabetes should be reported, if known. The guidelines for certifying diabetes as a cause of death are complex, as diabetes can be an underlying cause of death or, a risk factor for another underlying cause of death.