Madrid 's third major expansion took place in the 19th century , resulting in the foundations of modern Madrid , a sprawling succession of residential neighborhoods , shops , cinemas , restaurants , banks and smaller museums .
The third expansion of Madrid was the largest .