Cook the spaghetti according to the package instructions until al dente. Drain and set aside.
In a large skillet, heat the olive oil over medium heat. Add the finely chopped onion and cook for about 3-4 minutes until it becomes translucent.
Add the minced garlic and cook for another 1-2 minutes until fragrant, being careful not to let it brown.
Pour in the crushed tomatoes and stir to combine. Add the dried oregano, dried basil, and red pepper flakes (if using). Season with salt and black pepper to taste.
Reduce the heat to low, and let the sauce simmer for 15-20 minutes, allowing the flavors to meld together and the sauce to thicken.
Once the marinara sauce has reached your desired consistency, taste and adjust the seasonings if needed.
To serve, divide the cooked spaghetti among four plates. Ladle the marinara sauce over the spaghetti.
If desired, garnish with fresh basil leaves or parsley for a burst of freshness.
Offer grated Parmesan cheese at the table so each person can sprinkle it over their serving to taste.
Enjoy your Classic Spaghetti with Marinara Sauce!