Prepare the Pumpkin: Start by peeling and seeding the pumpkin. Cut it into even, bite-sized cubes to ensure uniform cooking.
Cook the Onion and Garlic: In a large skillet or sauté pan, heat the olive oil over medium heat. Add the chopped onion and cook until it becomes translucent and slightly golden, about 5-7 minutes. Add the minced garlic to the onions and cook for another minute until fragrant, taking care not to burn the garlic.
Sauté the Pumpkin: Add the cubed pumpkin to the pan with the onions and garlic. Stir well to combine. Season with salt, black pepper, and a pinch of nutmeg if using. The nutmeg adds a nice warmth to the dish but is optional. Cover and cook over medium-low heat, stirring occasionally. Cook until the pumpkin is tender but not mushy, about 15-20 minutes, depending on the size of the cubes.
Finish and Serve: Once the pumpkin is cooked to your liking, check the seasoning and adjust if necessary. Sprinkle chopped parsley over the top for a fresh, colorful finish. Serve hot as a side dish with your main course. It pairs well with rice, stews, or as part of a festive spread.