- Rail.railroad_name
- Office National des Chemins de Fer
- Rail.system_map
- Rail network in Morocco.svg
- Rail.map_caption
- Map of the Moroccan railway network in 2012
- Rail.marks
- ONCF
- Rail.image
- File:ONCF Al Boraq at Tangier Terminus.jpg
- Rail.<nowiki>thumb]]</nowiki>
|image_size
- 290
|image_caption = ONCF high speed train.
| locale = Morocco
| start_year = 1963
| end_year = present
| predecessor_line = Compagnie des chemins de Fer du Maroc ("CFM"); Compagnie franco-espagnole du chemin de fer de Tanger à Fès ("TF")
| successor_line =
| gauge = {{RailGauge
- Rail.1435mm}}
| length
- {{convert
- Rail.abbr
- on}}
| hq_city = 8, rue Abderrahmane El Ghafiki, Rabat - Agdal
| website = www.oncf.ma
|logo=Logo-oncf.png