Cook the spaghetti according to package instructions.
In a large skillet, heat the olive oil over medium heat.
Add the garlic and red pepper flakes and cook until fragrant, about 1 minute.
Add the tomatoes and season with salt and black pepper.
Simmer the sauce until thickened, about 10 minutes.
Add the cooked spaghetti to the sauce and toss to coat.
