Fimbriae are less rigid structures than pili. Pili are more rigid than fimbriae. The main function of fimbriae is surface attachment. The main function of pili is gene transfer (by conjugation) and attachment.