Boil the spaghetti noodles in hot water.
Finely chop the onion and garlic.
Heat olive oil in a pan and sauté the garlic and onion.
Add tomatoes and make the sauce.
Add the cooked pasta to the sauce and mix well.
Season with salt and pepper.
Plate and serve.