Bring a large pot of salted water to a boil.
Add spaghetti and cook according to package instructions until al dente.
While the pasta cooks, heat olive oil in a pan over medium heat.
Add minced garlic to the pan, sautéing until fragrant.
Once the pasta is ready, reserve 1 cup of pasta water, then drain the pasta.
Add the drained pasta to the pan with garlic and oil.
Toss the pasta in the oil, adding reserved pasta water as needed to create a sauce.
Season with salt and pepper to taste.
Garnish with fresh parsley and grated Parmesan cheese, if desired.