Preheat the oven to 400 degrees F.
Peel 5 cloves garlic and place them in a square of foil. Sprinkle the cloves with salt and pepper and drizzle with 2 tablespoons olive oil. Wrap up the foil and place it directly on the oven rack. (Be sure that the foil packet is secure so no oil will leak out.) Roast the garlic until it's brown and tender, about 25 minutes. Allow to cool enough to touch and squeeze the garlic from the skins. Set aside.
Saute onions and carrots with the oil in a medium saucepan. Add tomato paste and stir well. This will cook off the tomato paste and give a nice orangy color. Cook for about 10 minutes. When vegetables are softened add the roasted garlic, salt, pepper, basil, oregano and stir together until incorporated. Pour in the tomatoes. Fill the empty can with water and add it to the pan. Bring to a boil then lower the heat to a simmer. Simmer for 1 hour, uncovered. Stir occasionally. Once sauce is ready carefully pour it into the food processor and puree until smooth.
- Pour into ice cube trays and freeze for future use. By putting them in ice cube trays then popping them out into a resealable bag you can control how much you want to use each time - easier to manage. - Since tomatoes can be very acidic, using carrots and roasted garlic brings a sweetness to the marinara.