Steps
1. Cook the spaghetti in salted boiling water according to package instructions until al dente.
2. While the pasta cooks, heat olive oil in a pan over medium heat. Add minced garlic and sauté until fragrant.
3. Add diced tomatoes and red pepper flakes, cooking until the tomatoes soften.
4. Drain the pasta and add it to the pan, tossing to combine with the sauce.
5. Season with salt and pepper to taste, and cook for an additional 2-3 minutes.
6. Serve hot, garnished with fresh basil and Parmesan cheese if desired.