Heat the olive oil in a large saucepan over medium heat.
Add the chopped onion and sauté until it becomes soft and translucent, about 5-7 minutes.
Stir in the minced garlic and cook for an additional 1-2 minutes until fragrant, being careful not to burn it.
Pour in the crushed tomatoes along with the tomato paste, and stir to combine.
Sprinkle in the sugar, dried oregano, and dried basil. Mix well.
Season with salt and pepper to taste.
Bring the sauce to a simmer, then reduce the heat to low. Let it simmer, uncovered, for about 20-25 minutes to allow the flavors to meld together, stirring occasionally.
Once done, remove from heat and let it cool slightly before serving.
Notes
Serve the marinara sauce over freshly cooked ravioli, and garnish with fresh basil leaves and a drizzle of olive oil for a beautiful touch.