Dermatomyositis is an autoimmune disease that affects both the skin and muscles. It is part of a group of conditions known as inflammatory myopathies. The exact cause of dermatomyositis is not well understood, but it is believed to involve a combination of genetic, environmental, and immune system factors.