The only free and comprehensive online etymological dictionary of the Spanish language
peligro m. (Noun) "danger"
Metathesis of 12th cent. Old Spanish periglo. From Latin periculum "trial," "risk." From Proto-Italic *per-ei-tlo- "experience." From the Proto-Indo-European verb *pérh3-i̯- "to try." Earlier root *pérh3- may have meant "to go forward."
Indo-European
Romance
Asturian peligru, Portuguese perigo, Galician perigo, Catalan perill, French péril, Italian pericolo, Romanian pericol, Sardinian perículu
Celtic
Gaulish ieuru "he offered," Old Irish ernaid "to grant"
Hellenic
Ancient Greek ἔπορον (époron) "provided"
Indo-Iranian
Sanskrit pr̥ṇā́ti "he gives"