On 28 October 1856, the first railway line was inaugurated in Portugal, between Lisbon and Carregado: the Companhia dos Caminhos de Ferro Portugueses was born. The network was gradually expanded both south of the Tagus and to the north of the country, as well as in the metropolitan areas of Lisbon and Porto and to Spain. During the second half of the 20th century, much of CP's rolling stock was built in Portugal by Sorefame - notably carriages with stainless steel bodywork.