Boil spaghetti in salted water until soft and drain the water.
Heat olive oil in a pan and sauté chopped garlic and onion.
Add tomato sauce and cook for a few minutes.
Season with salt, pepper, and Italian herbs.
Add cooked spaghetti into the sauce and mix well.
Cook for 2–3 minutes until flavors combine.
Serve hot with extra herbs or cheese.