Iron pegs were commonly used to secured clays roof tiles.
As the nails corrode, they expand and cause the tile to break.
The tile slips out of alignment and the roof fails and admits water.