This invention applies to a new technology with the help of which it is possible to plan polypeptide chains which, by self-assembly, form protein nanostructures. Polypeptides are assembled modularly from linked peptide segments that in pairs form coils and thus the side of a polyhedron. The invention makes it possible to design new protein structures not found in nature, and the input of selected functions into positions with nanometer resolution, which makes it possible to prepare technologically interesting advanced nanomaterials. Protein nanomaterials have numerous advantages compared to nanomaterials from organic or inorganic building blocks.