Viral infections of the skin cause warts. The virus that causes warts is called human papillomavirus, or HPV.