This chapter is devoted to the electronic structure of nanoscale metallic magnets. After an introduction to methods of electronic structure calculations, we review how recent trends translate into the description of magnetic nanostructures. Among the considered structures are nanowires, small particles, surfaces and interfaces, and multilayers, and emphasis is on magnetic properties such as moment and magnetization, interatomic exchange, and anisotropy.