What causes warts? Warts are caused by an infection with the human papilloma virus (HPV). The virus causes an excess amount of keratin, a hard protein, to develop in the top skin layer (epidermis). The extra keratin produces the rough, hard texture of a wart.