Steps
1. Cook the spaghetti according to package instructions until al dente.
2. Meanwhile, heat olive oil in a pan over medium heat and sauté the minced garlic until fragrant.
3. Add the chopped tomatoes to the pan, season with salt and pepper, and cook for about 5 minutes until soft.
4. Drain the pasta and add it to the pan with the tomato mixture, tossing to combine.
5. Serve hot, garnished with fresh basil leaves and grated Parmesan cheese if desired.