As the capital city of the Spanish Empire from 1561, Madrid's population grew rapidly. Administration, banking, and small-scale manufacturing centred on the royal court were among the main activities, but the city was more a locus of consumption than production or trade, geographically isolated as it was before the coming of the railways.