Genetically modified thermostable Pf_Fn was prepared and the magnetic FePt nanoparticles were biomimetically synthesized within it. Site specific chemical modifications of FePt mineralized Pf_Fn exterior surface and biotin-streptavidin interactions allow forming uniform layer-by layer assemblies. Similar approaches can be used for other functional nanomaterials and fabricating nanostructured functional materials.