Book ONCF Train Tickets Online: Complete Guide
How to book ONCF train tickets online has become the easiest way to explore Morocco’s railway network in 2026. Whether you’re planning a journey from Casablanca to Marrakech or discovering the northern routes, booking your ONCF tickets through the official platform saves you time, money, and the hassle of queuing at station ticket counters.
The ONCF (Office National des Chemins de Fer) online booking system is user-friendly, secure, and available 24/7 for both Moroccan citizens and international tourists. With prices ranging from 100 MAD to 800 MAD (€9 to €75) depending on distance and train class, purchasing online often provides better rates than buying at the station.
This comprehensive guide walks you through every step of the booking process, from creating your account to boarding your train. We’ll cover everything you need to know about purchasing ONCF train tickets online in 2026, including payment options, seat selection, and insider tips for getting the best deals.
How to Book ONCF Train Tickets Online: Complete Guide for 2026
Booking ONCF train tickets online starts with visiting the official ONCF website at www.oncf.ma. The platform is available in French and Arabic, but you can navigate it easily even if you don’t speak these languages fluently. The interface displays all available trains, real-time schedules, and current pricing information. Unlike traditional booking methods, online reservations let you compare different train times, classes, and prices before committing to your purchase.
The entire process typically takes between 5-10 minutes once you’re logged in. You’ll need your passport information, email address, and a valid payment method. Many travelers find that booking in advance—ideally 2-3 weeks before travel—provides better availability and sometimes lower fares. For those wondering about discounts, our guide on how to get cheap ONCF tickets in Morocco covers real strategies for reducing your ticket costs.
- Access the official ONCF website (www.oncf.ma) from your computer or mobile device
- No account required for viewing schedules, but registration is necessary for purchasing
- Registration takes approximately 3-5 minutes with basic personal information
- The platform is available in multiple languages with customer support in French
- Mobile booking is fully functional and recommended for on-the-go reservations
Creating Your ONCF Account and Getting Started
Creating your ONCF account is the first essential step before you can book ONCF train tickets online. Navigate to the registration page and enter your full name exactly as it appears in your passport. Your email address becomes your login credential, so use one you check regularly. Set a strong password with at least 8 characters, including uppercase letters, numbers, and special characters. ONCF takes security seriously, and your account protects your payment information and booking history.
After registration, verify your email address by clicking the confirmation link ONCF sends within minutes. Once verified, you can log in and start searching for trains. Your account will store all previous bookings, making repeat journeys faster to arrange. If you’re traveling with family, each person needs their own account for proper ticket assignment. For comprehensive information about train routes and services, check our Morocco train travel guide covering ONCF routes, tickets, and timetables.
- Visit the ONCF website and click “Sign Up” or “Create Account”
- Enter your full name, email address, and phone number
- Create a password and confirm it (ensure it meets security requirements)
- Accept the terms and conditions
- Verify your email address within 24 hours to activate your account
Searching for Trains and Selecting Your Journey
Searching for trains through the ONCF online booking system is straightforward once you’ve logged in. Select your departure city from the dropdown menu—major cities like Casablanca, Marrakech, Fez, and Tangier are clearly listed. Choose your destination station, then set your travel date. The system displays all available trains departing that day, showing departure times, arrival times, duration, and prices for different classes (Economy, Standard, and Premium). For popular routes like Casablanca to Marrakech, multiple trains run daily with different pricing structures.
Train prices vary significantly based on departure time and how far in advance you book. Early morning trains often cost 280-350 MAD (€26-33) for economy class between major cities, while afternoon services may be 320-400 MAD (€30-37). Premium classes with dining services run 450-550 MAD (€42-52). The search results show seat availability in real-time, so you can immediately see if your preferred time slot has availability. If you need detailed information about specific routes, our ONCF Casablanca to Marrakech train schedule provides comprehensive 2026 timetables and duration information.
- Select departure city and destination station from dropdown menus
- Choose your travel date and specify if you’re a returning passenger (round-trip booking)
- Review all available trains with departure times, duration, and pricing
- Compare train classes: Economy (most affordable), Standard (comfortable), and Premium (luxury service)
- Check seat availability before selecting your preferred train
Payment Methods and Completing Your Booking
Once you’ve selected your train, the system takes you to the seat selection interface where you can choose your specific seat. Seats near windows cost slightly more (typically 20-30 MAD additional), and you can preview the seating arrangement before confirming. After selecting seats, enter passenger details for each ticket. Children under 4 travel free if they sit on an adult’s lap, while children 4-12 receive 50% discounts on most routes. The system then presents your payment options.
ONCF accepts multiple payment methods for your convenience: credit cards (Visa and Mastercard), debit cards, and Moroccan bank transfers. International tourists can use any international Visa or Mastercard. Bank transfers require a Moroccan bank account, so tourists typically rely on credit cards. The platform uses secure encryption (SSL) to protect your payment information. Payment is processed immediately, and you’ll receive a confirmation email with your ticket reference number (confirmation de réservation) within seconds. Your e-tickets are then available for download as PDF documents.
- Choose your preferred seat from the interactive seating map
- Enter full passenger names exactly matching passport information
- Indicate passenger type (Adult, Child, Student, Senior) for applicable discounts
- Accept payment terms and select your payment method (credit card, debit card, or bank transfer)
- Complete payment and receive instant email confirmation with e-ticket attachment
Managing Your Tickets and Travel Tips
Managing your ONCF tickets online is simple through your account dashboard. Log in anytime to view your confirmed bookings, download your e-tickets, and access your ticket reference number. Print your e-tickets before arriving at the station, or show them on your mobile device at check-in. ONCF typically opens boarding 30 minutes before departure, so arrive at the station with enough time to locate your platform. Your ticket includes your seat number, so there’s no need to queue for seat assignment.
For more detailed travel strategies and route information, our ONCF train guide 2026 covers everything about traveling Morocco by rail smartly. Cancellations are permitted up to 24 hours before departure with a 10% administrative fee, and you’ll receive a refund to your original payment method within 5-7 business days. If you need to modify your reservation, you can often rebook on a different date without additional charges if seats are available. Keep your confirmation email and reference number accessible throughout your journey for any inquiries or changes.
- Access your bookings anytime through your ONCF account on the website
- Download and print your e-tickets or save them on your smartphone
- Arrive 30 minutes before departure for domestic trains and 45 minutes for international services
- Present your e-ticket at the ticket counter or directly to onboard conductors
- Request cancellation or modifications through your account up to 24 hours before departure
Related Articles
- How to Book ONCF Train Tickets Online (Step-by-Step for Tourists in 2026)
- Morocco Train Travel Guide: ONCF Routes, Tickets & Timetables Explained
- ONCF Train Guide 2026: How to Travel Morocco Smartly
- ONCF Casablanca to Marrakech Train Schedule (2026 Timetable + Duration + Best Times to Travel)
- How to Get Cheap ONCF Tickets in Morocco (Real Discounts + Best Booking Tips)











