Boil the spaghetti in boiling water.
Dice the tomatoes.
Chop the onion and garlic.
Heat olive oil in a pan and sauté the garlic and onion.
Add tomatoes, then season with salt and pepper.
Add the cooked pasta to the pan and mix with the sauce.
Garnish with basil to finish.