Bring a large pot of salted water to a boil and cook the spaghetti until al dente; reserve 1 cup of pasta water before draining.