Oujda: The Thousand-Year-Old City at the Edge of Morocco

Oujda is a thousand-year-old city in the far northeast of Morocco. It stands near the Algerian border, closed since 1994.

Oujda was founded in 994 by Ziri ibn Atiyya, a Berber chief of the Zenata, and it has lived on a frontier ever since. The city is the capital of the Oriental region, the largest city of eastern Morocco, and a place where Moroccan and Algerian cultures meet in food, speech and music. Oujda is less visited than Fez or Marrakech, and that is part of its charm: the medina is small enough to cross on foot, the markets sell to local people, and the evenings belong to rai music. The closed border has shaped the city for thirty years, and Oujda has turned its face towards the sea at Saidia and the mountains of Beni Snassen instead.

Quick Facts

  • City: Capital of the Oriental region and Oujda-Angad Prefecture, northeast Morocco
  • Population: 506,224 people in the city, at the census of 2024
  • Founded: 994, by Ziri ibn Atiyya, chief of the Zenata Maghrawa
  • Altitude: About 550 metres, on the eastern plateau south of the Beni Snassen mountains
  • Airport: Oujda-Angad Airport, about 12 kilometres north of the centre
  • Nearest World Heritage: The Medina of Fez, about 289 kilometres away in a straight line
  • Known for: A thousand years of history, a compact medina, rai music and the green spaces of Lalla Aicha Park

Geography of Oujda

Oujda lies in the far northeast of Morocco, about 15 kilometres west of the Algerian border and about 55 to 60 kilometres south of the Mediterranean Sea. The city stands on the eastern plateau, south of the Beni Snassen mountains, at an altitude of about 550 metres above sea level. Its coordinates are about 34 degrees 41 minutes north and 1 degree 55 minutes west, and its position makes Oujda the eastern gateway of Morocco, linking the east of the country with the centre and the north.

The city stands on the old road that linked Fez with Tlemcen, two historic cities of Morocco and Algeria. This road was once the main trading route of the Maghreb, with caravans carrying goods between the Atlantic and the Mediterranean. Today the road is a highway that joins Oujda with Fez to the west and with Nador to the north. The Algerian town of Maghnia stands just across the border, but the land border has been closed since 1994, so the road now runs only inside Morocco, and Oujda has become a city at the end of a road rather than a city on a road between two countries.

The Beni Snassen mountains rise north of Oujda, a limestone massif whose highest point is Jebel Fourhal, at 1,509 metres above sea level. The mountains give Oujda a cooler climate than the plain to the south, and they hold many Berber villages with stone houses and terraced fields. The oasis of Sidi Yahya lies south of Oujda, with springs and green trees, and it is a favourite picnic place for local families. The Moulouya River, the largest river of eastern Morocco, flows about 60 kilometres west of Oujda, and it is the main source of water for the region.

The climate of Oujda is semi-arid, with hot dry summers and cool winters. Daytime temperatures often reach 30 to 38 degrees in summer and fall to 15 to 20 degrees in winter. Rain falls mainly in winter, from November to March, with an average of about 300 millimetres a year. Wind from the Sahara blows in summer, bringing dust and drying the air, and travellers should visit the city in spring or autumn, when the weather is at its kindest and the dust is least.

Oujda is about 350 kilometres east of Fez, a journey of four to five hours by road or by train. The city is about 120 kilometres south of Nador, a port with a market and beaches, and about 60 kilometres south of Saidia, the long sandy beach on the Mediterranean that Moroccans call the blue pearl. Oujda-Angad Airport lies about 12 kilometres north of the centre, with flights to Casablanca, Paris and other European cities. The position of the city makes it a good starting point for trips to Saidia, Nador and the Beni Snassen mountains.

The land around Oujda is dry, with the Angad plain stretching south of the city and the mountains rising to the north. The city itself is compact, with the old medina at its heart and the French-era new town to the west, and the university campus on the edge of the city. Green spaces are precious here, and the Lalla Aicha Park, the largest park in the city, is where families gather in the late afternoon, when the heat fades and the city comes out to walk.

South of the city, the Angad plain spreads towards the Algerian border, a flat farming land that feeds the markets of Oujda. The plain is dry, and its farms depend on wells and on the winter rain, but in spring the fields turn green and the markets fill with the first vegetables of the year. The contrast between the green plain in spring and the dry plain in summer is one of the quiet sights of the east.

The Grand Mosque of the medina of Oujda

The Grand Mosque of the medina of Oujda — CC BY-SA 4

History of Oujda

The history of Oujda began in 994, when Ziri ibn Atiyya, a Berber chief of the Zenata Maghrawa tribe, founded the city as his capital. Oujda stood on the road between Fez and Tlemcen, and its position made it a military and trading centre from the start. The city celebrated its thousandth anniversary in 1994, and it is still called the millenary city of Morocco. For many centuries Oujda was a border city, changing hands between the dynasties of Morocco and Algeria, and its history is a story of sieges, rebuilding and survival.

The city was destroyed and rebuilt many times, because its position on the frontier made it a target for every army that crossed the east of Morocco. In the 13th century Oujda came under the Marinid dynasty, and later under the Saadian and Alaouite dynasties. Each dynasty left its mark on the medina, with gates, mosques and schools, and the medina of today still keeps its medieval layout, with narrow lanes and a traditional market. The old city is smaller than the medinas of Fez or Marrakech, but it has kept its shape, and walking through it is like walking through a thousand years of Moroccan history.

In the 19th and early 20th centuries Oujda became the centre of the Oriental region under the French protectorate. The French built a new town west of the medina, with wide streets, administrative buildings and a railway station, and the railway linked Oujda with Fez and the rest of Morocco. Mohammed I University was founded in 1978, and it made Oujda the educational centre of eastern Morocco, with students from across the region. After Morocco became independent in 1956, Oujda kept its role as the capital of the Oriental region, and its administrative and trading role grew with the city.

The closing of the border with Algeria in 1994 changed the economy of Oujda deeply, because the city had lived on trade across the border. The closing put many businesses in the city in difficulty, but Oujda turned towards trade inside Morocco and towards tourism. Today Oujda is a stop for travellers on the road from Fez to Saidia, and it is the centre of rai music in Morocco. The rai festivals and the evening concerts are an important part of the cultural life of the city, and the music of the east, with its Arabic lyrics and lively rhythm, is the sound of Oujda at night.

The medina of Oujda has survived a thousand years of frontier history, and its gates and mosques tell the story of the dynasties that ruled the city. The Grand Mosque, the old gates and the schools of the medina are the oldest monuments of the city, and they show the blend of Berber, Arab and Andalusian styles that shaped eastern Morocco. The French new town, with its wide streets and its railway station, tells the other half of the story, of a city that became modern in the 20th century while keeping its old heart.

Today Oujda is a city of about half a million people, the ninth largest city in Morocco, and the capital of a region of more than two million. The city is less visited than the imperial cities of the west, and it keeps a local feeling that the great tourist cities have lost. Visitors who come to Oujda find a city that is proud of its age, its music and its position on the edge of Morocco, and that offers a Morocco beyond the famous sights.

In 1994, the year the border closed, Oujda also marked a thousand years since its founding, and the two events together define the modern city: a millennium of history, and a frontier that shut.

Travel to Oujda

Travel to Oujda usually begins at Oujda-Angad Airport, about 12 kilometres north of the centre, with flights from Casablanca, Paris and other European cities. From the airport, a taxi or a bus brings visitors into the centre in about 20 minutes. The railway links Oujda with Fez, Casablanca and other cities, with a night train that suits travellers who want to save time. Buses from the city to Nador and Saidia run many times a day, and they make it easy to combine Oujda with the Mediterranean coast in the same trip.

The medina of Oujda is the main sight of the city, with old gates, mosques and a traditional market. The medina is smaller than the medinas of Fez or Marrakech, so visitors can walk through it in a morning. The market in the medina sells spices, cloth, leather and crafts, with prices lower than in the great tourist cities. Visitors should go to the medina in the morning, when the market is busiest and the air is still cool, and in the afternoon the medina is quieter and better for photographs of the old buildings.

Lalla Aicha Park is the largest green space in the city, near the centre, with trees, a lake and walking paths. The park is where local families gather in the late afternoon and at weekends, with picnics and children playing. The oasis of Sidi Yahya lies south of the city, with springs and green trees, and it is a traditional picnic place for local people. The two places show that Oujda is not only a dry border city, but a city with green spaces that its people value.

Saidia is the nearest beach to Oujda, about 60 kilometres north, with a long sandy beach and a seaside resort. Saidia is called the blue pearl of Morocco, with clear water and fine sand, and visitors staying in Oujda can go to Saidia for the day, by bus or by hire car, in about one hour. Nador, about 120 kilometres north, is a port city with a market and beaches, and it is another stop on the coastal road. A stay in Oujda can be combined with Saidia for the sea and with the Beni Snassen mountains for walking, and the two together show the east of Morocco in a single trip.

The food of Oujda reflects the position of the city on the border, with dishes that blend Moroccan and Algerian cooking. Grilled meat, tajine and couscous are the main dishes, with the spices of the east, and the market in the medina is the best place to buy spices and dried goods. In the evening, the eateries around Lalla Aicha Park fill with local people, and rai music, with its lively rhythm and Arabic lyrics, is the sound of the city at night.

The best time to visit Oujda is spring, from March to May, and autumn, from September to November, when the weather is kindest. Summer is hot and dry, with daytime temperatures often above 35 degrees, and wind from the Sahara brings dust. Winter is cool, with daytime temperatures of 15 to 20 degrees, but it can rain. Visitors should avoid the middle of the day in summer, when the sun is fierce, and should plan the medina for the morning and the park for the late afternoon.

Ain Almou Oujda Province Morocco

Ain Almou Oujda Province Morocco — CC BY-SA 4

Notable Places in Oujda

The medina of Oujda

The medina of Oujda is the old town of the city, with gates, mosques and a traditional market from medieval times. The medina is smaller than the medinas of Fez or Marrakech, but it keeps its old layout, with narrow lanes and courtyards, and the market sells spices, cloth, leather and crafts at prices lower than in the great tourist cities. The morning is the best time to visit, when the market is lively and the air is still cool.

Lalla Aicha Park

Lalla Aicha Park is the largest green space in the city, near the centre, with trees, a lake and walking paths, where local people gather in the late afternoon and at weekends. The park has sports areas and a playground, and it is a good place to rest after walking in the medina. The late afternoon is when the park is at its best, when the sun softens and people come out to walk.

The oasis of Sidi Yahya

The oasis of Sidi Yahya lies south of Oujda, with springs and green trees in the middle of dry land, and it is a traditional picnic place for local people, with shade and cool water. The name of Sidi Yahya is linked with a local holy man, and the oasis has a spiritual meaning for the people of the city. Visitors should go in the morning, when the air is cool and the light is good for photographs, and the oasis shows how water decides life in eastern Morocco.

The Beni Snassen mountains

The Beni Snassen mountains stand north of the city, a limestone massif whose highest point is Jebel Fourhal, at 1,509 metres above sea level. The mountains hold many Berber villages, with stone houses and terraced fields, and visitors can walk in the mountains for a day from the city, with a local guide. Spring is the best time to go to the Beni Snassen, when wild flowers bloom and the weather is cool, and the mountains are the most important natural sight around Oujda.

The Grand Mosque and the old gates

The Grand Mosque and the old gates of the medina are the oldest monuments of Oujda, and they show the blend of Berber, Arab and Andalusian styles that shaped the city. The gates once guarded the entrances to the medina, and the mosque has served the city for centuries. Visitors who walk the medina should look for the gates, because they mark the old limits of the city and the points where the roads to Fez and Tlemcen began.

Frequently Asked Questions

Where is Oujda?

Oujda stands in northeast Morocco, about 15 kilometres from the Algerian border and about 55 to 60 kilometres south of the Mediterranean Sea.

Can travellers cross from Oujda into Algeria?

No, the land border between Morocco and Algeria has been closed since 1994, and travellers cannot walk across it.

How many days should visitors spend in Oujda?

At least two days, for the medina, Lalla Aicha Park and the oasis of Sidi Yahya, with a day trip to Saidia for the beach.

What makes Oujda different from other Moroccan cities?

Oujda is a thousand-year-old border city with rai music and a local feeling, far less visited than Fez or Marrakech.

When is the best time to visit Oujda?

Spring, from March to May, and autumn, from September to November, when the weather is at its kindest.

What day trips can be made from Oujda?

Saidia, about 60 kilometres north, for the beach, and the Beni Snassen mountains, for walking and Berber villages.

Verified

  • Oujda is the capital of the Oriental region in northeast Morocco, about 15 kilometres west of the Algerian border and about 55 to 60 kilometres south of the Mediterranean Sea. The city was founded in 994 by Ziri ibn Atiyya, a Berber chief of the Zenata Maghrawa, and it celebrated its thousandth anniversary in 1994.
  • The population of Oujda is 506,224 people in the city, at the census of 2024, which makes Oujda the ninth largest city in Morocco. The land border with Algeria has been closed since 1994, and the Algerian town of Maghnia stands just across the border.
  • Mohammed I University was founded in 1978, and Oujda-Angad Airport lies about 12 kilometres north of the centre, with flights to Casablanca, Paris and other European cities. The highest point of the Beni Snassen mountains is Jebel Fourhal, at 1,509 metres above sea level.
  • The nearest World Heritage property is the Medina of Fez, ref 170, about 289 kilometres away in a straight line. The Medina of Fez was inscribed in 1981 under criteria (ii) and (v), and it preserves the capital founded by the Idrisid dynasty between 789 and 808.
  • The Archaeological Site of Volubilis, ref 836, lies about 343 kilometres away in a straight line, and it was inscribed in 1997 under criteria (ii), (iii), (iv) and (vi), covering 42 hectares. The Historic City of Meknes, ref 793, lies about 346 kilometres away in a straight line.
  • Oujda itself is not a World Heritage site, and the registry flag of false is correct. The registry Q-ID Q193802 is the city of Oujda, with coordinates 34 degrees 41 minutes north and 1 degree 55 minutes west.

Sources

  • Wikipedia, “Oujda” (https://en.wikipedia.org/wiki/Oujda) — checked 23/11/2026.
  • UNESCO, “Medina of Fez” (https://whc.unesco.org/en/list/170/) — checked 23/11/2026.
  • UNESCO, “Archaeological Site of Volubilis” (https://whc.unesco.org/en/list/836/) — checked 23/11/2026.
  • Oujda-Angad Airport, Wikipedia (https://en.wikipedia.org/wiki/Oujda-Angad_Airport) — checked 23/11/2026.
  • Mohammed First University, Wikipedia (https://en.wikipedia.org/wiki/Mohammed_First_University) — checked 23/11/2026.
  • Wikidata API, Q193802 — checked 23/11/2026.

Unverified

  • The exact altitude of the city is not agreed between sources, so the article gives about 550 metres and draws no firm conclusion.
  • The population of the urban area of Oujda, about 610,000 people, is an estimate and not an official census figure, so the article marks it as an estimate.
  • Flight times from Oujda-Angad Airport change with the season and the airline, so travellers should check the current timetable before booking.
  • The dates of the rai music festivals in the city change from year to year, so the article gives no dates and travellers should check the official calendar.

Illustrations

  • Hero: AL RABAB instrument used in GHARNATI Festival, Oujda Morocco. Free image: https://upload.wikimedia.org/wikipedia/commons/c/c4/AL_RABAB_instrument_used_in_GHARNATI_Festival%2C_Oujda_Morocco_01_by_Brahim_FARAJI.jpg — CC BY-SA 4.
  • In body, Oujda: Ain Almou Oujda Province Morocco. Free image: https://upload.wikimedia.org/wikipedia/commons/4/4c/Ain_Almou_Oujda_Province_Morocco.jpg — CC BY-SA 4.
  • In body, The Grand Mosque and the old gates: The Grand Mosque of the medina of Oujda. Free image: https://upload.wikimedia.org/wikipedia/commons/a/ac/FARAJI_Brahim_-LA_GRANDE_MOSQUEE_DU_MEDINA_OUJDA-_Septembre2015.jpg — CC BY-SA 4.