Soak the dried lentils in water for 15 minutes.
Sauté the chopped garlic in the olive oil until fragrant. Add the dried lentils with ½ cups water. Stir in the ras el hanut/ spice mix of choice. Cover with a lid.
Once the lentils start to boil turn then heat down to medium; leave to simmer for 30 minutes with the lid on, checking regularly and giving it a good stir.
In another pan, fry the thinly-chopped onion until crisp and caramelised-golden. Set aside on a kitchen towel to absorb the oil.
After thirty minutes or so, the lentil shells should have broken. Add the rice and a pinch of salt, cooking on low heat for another 15 minutes with the lid on. Note: only add the salt once the lentil shells have broken, as adding salt at the start will prevent the lentils from cooking properly.
Pro Tip: If the lentils start to burn or stick to the bottom then add a splash of additional water. However try to avoid having to do this, as it makes the lentils mushy.
When lentils and rice are soft, turn off the heat. Stir in some olive oil and salt and leave the mudadara to steam with the lid on, for 20 minutes.
Serve hot in a bowl with the fried onions on top and yogurt on the side!