Several companies provide rail transport in Portugal.
Portugal is a member of the International Union of Railways (UIC). The UIC Country Code for Portugal is 94. There are rail links with Spain, which uses the same gauge.
REFER is the rail network administrating company.
The length of Portugal's railway system is as follows:
- total: 2,786 km (1,731 mi)
- broad gauge: 2,603 km (1,617 mi) 1,668 mm (5 ft 5 21⁄32 in) gauge (1,351 km or 839 mi electrified)
- metre gauge: 183 km (114 mi) 1,000 mm (3 ft 3 3⁄8 in) gauge (2006)