Preheat your oven to 400°F.
Slice the eggplant, zucchini, red bell pepper, tomato, and onion into uniform pieces.
Mince the garlic and chop the fresh thyme leaves, reserving whole sprigs for garnish.
In a large bowl, toss the vegetables with olive oil, minced garlic, dried oregano, salt, and pepper.
Spread the vegetable mixture evenly on a baking tray and roast for 25-30 minutes until tender and slightly caramelized, stirring halfway through.
While the vegetables roast, cube the tofu and gently pat dry. Lightly season with salt and pepper.
In a skillet over medium heat, sauté the tofu cubes until golden on all sides, about 5-7 minutes.
Lightly warm the cooked chickpeas and lentils in a small saucepan.
In a separate pan, cook the egg to your preference (poached or soft scrambled work well) ensuring it remains runny enough to combine with the vegetables.
Once the vegetables are roasted, mix them with the sautéed tofu, warmed chickpeas, and lentils. Adjust seasoning if needed.
Plate the ratatouille, top with the cooked egg, and garnish with the reserved fresh thyme sprigs.
Serve warm and enjoy this balanced dish bursting with rustic flavors and a wholesome protein boost.