A delightful pasta dish featuring a medley of Mediterranean flavors, perfect for a quick and satisfying meal.
Bring a large pot of water to a boil, then add a pinch of salt and the spaghetti. Cook until al dente, then drain.
Reserve a cup of pasta water before draining to adjust the sauce consistency later.
Heat olive oil in a large saucepan over medium heat. Add chopped onion and minced garlic, cooking until fragrant.
Stir frequently to prevent the garlic from burning, which can make it bitter.
Stir in the crushed tomatoes, red pepper flakes, and dried oregano. Simmer for 10 minutes.
Use a wooden spoon to break up the tomatoes for a smoother sauce.
Add the olives, capers, fresh basil, and thyme to the sauce. Simmer for another 5 minutes.
Taste the sauce and adjust the seasoning with salt and pepper as needed.
Combine the cooked spaghetti with the sauce, tossing to coat evenly.
Add a splash of reserved pasta water if the sauce is too thick.
Serve the pasta warm, garnished with additional fresh basil if desired.
For an extra touch, sprinkle with grated Parmesan cheese or a drizzle of olive oil.