Boil the spaghetti noodles in boiling water.
Chop the onion and garlic.
Heat olive oil in a pan and sauté the garlic and onion.
Add tomato sauce and simmer.
Add the boiled spaghetti noodles to the sauce and mix well.
Season with salt and pepper to taste.
Plate the finished spaghetti.