Skin infection is mainly caused by bacteria, viruses, fungus and can affect any part of the body. This infection usually starts after a cut, scratch, or injury to the skin. People who have diabetes or a disease that weakens the immune system are more likely to have skin infections. Skin redness, itching, and swelling begin to occur due to skin infection and pus is formed.