01 - Bring a large pot of salted water to a boil. Cook pasta according to package directions until al dente. Drain, reserving 1/2 cup of pasta water, and set aside.
02 - Heat olive oil in a large skillet over medium heat. Add chopped onion and sauté for 3 to 4 minutes until softened.
03 - Stir in minced garlic and cook for an additional 30 seconds until fragrant.
04 - Add crushed tomatoes, tomato paste, sugar, oregano, basil, optional chili flakes, salt, and pepper. Stir well to blend flavors.
05 - Reduce heat and simmer sauce for 10 to 12 minutes, stirring occasionally until thickened and flavorful.
06 - Add cooked pasta to skillet and toss until evenly coated. Incorporate reserved pasta water gradually to achieve desired consistency.
07 - Plate the pasta and garnish with grated Parmesan and fresh basil leaves as desired. Serve immediately.