After it became the capital of Spain in the 16th century, Madrid was more a centre of consumption than of production or trade. Economic activity was largely devoted to supplying the city's own rapidly growing population, including the royal household and national government, and to such trades as banking and publishing.