Heat olive oil in a large saucepan over medium heat.
Add chopped onion and sauté until translucent, about 5 minutes.
Stir in minced garlic and grated carrot, cooking for an additional 2 minutes.
Pour in the crushed tomatoes, stirring to combine.
Add sugar, salt, and pepper to taste.
Incorporate fresh basil leaves and dried oregano for flavor.
If desired, sprinkle red pepper flakes for a spicy kick.
Bring the sauce to a simmer, reducing heat to low.
Let it cook uncovered for 20 minutes, stirring occasionally.
Taste and adjust seasoning before serving.