piRNAs function in the germline to silence genetic elements such as retrotransposons and in RNA silencing as components of the RNA-induced silencing complex (RISC).