The 'Cercanias' train travelling on Madrid's C7 suburban line was evacuated after the brakes of the final carriage began smoking and then caught fire.
The incident occurred at La Garena station as the train was heading towards Alcalá de Henares, Spain's La Sexta TV station reported.
El tren de cercanías en el trayecto La Garena – Alcala ha empezado a arder pic.twitter.com/DXG2MJEMxh
— Teresa (@teresagomezg) July 24, 2014
Emergency services were called in although national railway company Renfe said the train did not need to be halted.
Services on the line were suspended but have now resumed, Renfe reported.
The incident comes on the first anniversary of a horror crash of a high-speed 'Ave' train near the northern Spanish city of Santiago de Compostela which captured worldwide attention.
Seventy-eight people died in what was Spain's worst train accident in decades.