The revolution of 1868 and the financial crisis that the company endured caused the directors to refrain from requesting new concessions. By 1875, after the most significant challenges had been overcome, the MZA could enter a new phase of expansion, resulting in the addition of roughly 1,189 km of existing lines to the MZA network. The initial rescue had strong political implications and served as a means of reconciliation with
Norte. The latter agreed to give up its Andalusian firm, and in return, the MZA did not hinder the recovery of the
ZPB. The merger ultimately involved Compañía de los Ferrocarriles de Zaragoza a Pamplona y Barcelona by Norte. The Cordoba-Seville Railway Company was in dire straits for the future, prompting it to seek a merger by engaging in talks with other railway companies. In contrast to its terrible relations with the
Seville-
Jerez-
Cadiz Railway Company, the small company had established good relations with MZA. Thus, on October 5, 1875, MZA acquired
Compañía del Ferrocarril de Córdoba a Sevilla and its 132 kilometers of operational lines, along with the line from La Reunión mines to
Villanueva del Río y Minas. This allowed Madrid to Zaragoza and Alicante Company to connect this railway with its own, which reached
Cordoba and enabled access to the Andalusian region's capital. where the MZA tracks ended in the south of Spain. The MZA acquired the
Compañía de los Ferrocarriles de Sevilla a Huelva in 1877, following negotiations that began in 1876. This expansion included 111 km of partly completed lines that faced significant difficulties and would not be finished until 1880. The acquisition also included the use of the Huelva station, which was commissioned in 1880 and remained operational with
RENFE until 2018. The MZA executives, who owned railways and had a foothold in various Mediterranean ports, believed that establishing a port on the
Atlantic would boost their network traffic by expanding operations to additional countries. Unfortunately, this aspiration would remain unfulfilled. The
Ciudad Real to
Badajoz line was opened on November 22, 1866, under the ownership of the
Compañía de los Caminos de Hierro de Ciudad Real a Badajoz. Subsequently, the company expanded its network by adding a new branch to Madrid, which was finished by 1879. Nevertheless, the company had shifted towards a business model that impeded its long-term survival. Since the beginning of 1879, both companies have been entering into agreements, including one for the distribution of traffic. Eventually, this led to the annexation by MZA. On April 8, 1880, the absorption of the
Compañía de los Caminos de Hierro de Ciudad Real a Badajoz increased the network by an additional 510 km and most importantly, provided an exit to Portugal.
Delicias station, formerly known as the
Compañía de Ciudad Real-Badajoz station and located in the capital, was not acquired by MZA due to their ownership of the much larger
Atocha station. Instead, they sold Delicias to the recently established
Compañía de los Ferrocarriles de Madrid a Cáceres y Portugal, who ultimately acquired it.
Operations (1875-1895) (April 27, 1884), with 59 deaths and 56 injured: the largest railway disaster in Spain to date. In addition to the annexations and the expansion of the railways, the MZA carried out a policy adapted to the situation of the country. During this period, known as the Restoration, there was a significant economic upturn, with strong commercial activity and, above all, strong industrial expansion. This situation required the railways to adapt the existing rolling stock of the companies and to improve the network and facilities. In 1876, the company purchased 400 new wagons, which eventually increased to 1000 units. In the same period, MZA underwent modernization which included the commissioning of the first express between Madrid and Seville in 1878. The following year, another express began operating between Madrid, Lleida, and Barcelona.
Wagons-Lits equipment was put into service on the Andalusia express on April 16, 1883, and a successful braking system test was conducted on the same express on May 8, 1886. MZA also planned to construct another rail link with the North, which would
begin at Ariza (on the Madrid-Zaragoza railway) and extend to
Valladolid, passing through
Aranda de Duero. in
Madrid, turned into the head and symbol of MZA. As it looked after the last major refurbishment of the classic station was completed in 1992. Conceived as a strategic railway line according to government plans, it became operational on January 1, 1895, marking the end of MZA's railway construction.
Expansion into Catalonia In 1885, the civil engineer
Eduardo Maristany Gibert (1855-1941) (grandson of Manuel Gibert, president of the primitive
Compañía del Camino de Hierro de Barcelona a Mataró) joined the
Compañía de los ferrocarriles de Tarragona a Barcelona y Francia (TBF). At the time, the TBF was building a direct line from
Barcelona to
Zaragoza, on a route much further south than the one operated by the
Compañía del Norte via Lleida and Manresa. TBF was already in communication with MZA regarding a potential merger. TBF found it more practical to merge its new line connecting Zaragoza to Barcelona via
Caspe with MZA's line connecting Madrid to Zaragoza, creating a single company to link the two main Spanish cities. This approach differed from TBF's original plans, which were inherited from the now-defunct
Compañía de los Ferrocarriles Directos de Madrid y Zaragoza y Barcelona, absorbed by TBF. A branch line was established as a result of the merger agreements and commenced service on June 15, 1887. The line integrated the Valls-Villanueva-Barcelona (VVB) line into the city's network of links by connecting a point of the ex-VVB near the
Llobregat River with the Bordeta fork on the line from Tarragona and Martorell that led to
Aragon Street. With the completion of this railway link in 1887, the "
Catalan eight" was established. It enabled train travel from Barcelona to different locations in the province of Girona, along the coast (
Mataró) or inland (
Granollers). Moreover, this connection extended southwards to several towns in the province of Tarragona, along the coast (Villanueva y Geltrú - VVB line) or inland (Martorell - "
Centro" line). Prior to the partnership, it was agreed that MZA would construct the 254 km
Valladolid-Ariza Railway line to establish a stronghold in
Castilla la Vieja, a region traditionally controlled by
Compañía del Norte. Similarly, TBF would be responsible for the completion of the direct line from Caspe. == 20th century ==