Nuremberg is the second-largest city of the German federal state of Bavaria after its capital Munich.