Both hyperglycemia and hypoglycemia in hospitalized patients are associated with adverse outcomes including increased rates of infection, longer hospital length of stay, and even death. Clinical trials in patients with type 2 diabetes mellitus proved that by improving glycemic control, we can reduce all of them. Insulin is the preferred treatment for glycemic control in most cases, but alternative treatment options that can normalize blood glucose levels without hypoglycemia are being sought. Moreover, hospitalized patients are particularly vulnerable to severe, prolonged hypoglycemia since they may be unable to sense or respond to the early warning signs and symptoms of low blood glucose. Finally, nutritional support, corticosteroid therapy, and surgery increase the risk of hyperglycemia that leads to an increased risk of morbidity and mortality. We review the management of type 2 diabetes mellitus patients who are admitted to the general medical wards of the hospital for a procedure of intercurrent illness.