Follow the steps in order for the best result.
Begin by preheating your oven to 220°C (approximately 425°F).
Spread the chopped pumpkin in a single layer on a baking sheet. Drizzle with half of the olive oil, ensuring even coating. Roast, uncovered, for about 20 minutes, or until the pumpkin is tender. Once cooked, remove and discard the skin.
In a large saucepan, heat the remaining olive oil over medium heat. Add the sliced onion and garlic, cooking until the onion becomes soft and translucent. This should take several minutes. Stir frequently to prevent burning.
Incorporate the tomato paste into the onion and garlic mixture. Cook for another minute, stirring constantly, to deepen the flavor.
Pour in the red wine vinegar, crushed tomatoes, water (or vegetable stock), allspice, chickpeas, and the roasted pumpkin. Stir well to combine all ingredients.
Bring the mixture to a boil, then reduce the heat to low. Simmer for 5 to 10 minutes, allowing the flavors to meld together beautifully.
Serve the ratatouille hot over a bed of couscous or quinoa. For an extra touch of freshness, garnish with chopped fresh herbs like parsley or basil.