According to Wikipedia, hair is “a protein filament that grows from follicles found in the dermis”. Hair is mainly (80~90%) composed of protein, so if you don’t have enough protein, it could result in hair thinning and loss (so make sure to pay attention to your diet!)
These foods are high in protein: meat, eggs, fish, beans, cheese and nuts.