Diabetes mellitus is a disease in which the beta cells of the endocrine pancreas either stop producing insulin or can no longer produce it in enough quantity for the body's needs. The disease can affect humans as well as animals such as dogs. The condition is commonly divided into two types, depending on the origin of the condition: type 1 and type 2.