Steps
1. Cook the spaghetti according to package instructions until al dente. Drain and set aside.
2. In a pan, heat the olive oil over medium heat. Add the minced garlic and red pepper flakes, sautéing for about 30 seconds until fragrant.
3. Add the canned diced tomatoes, olives, and capers to the pan. Season with salt and pepper. Simmer for about 5-7 minutes until the sauce thickens slightly.
4. Toss the cooked spaghetti into the sauce, mixing well to coat the pasta evenly.
5. Serve hot, garnished with fresh parsley and grated Parmesan cheese if desired.