Boil the penne in salted water.
Chop the onion and garlic.
In a pan, heat olive oil and sauté the garlic and onion.
Add the tomato sauce and bring to a simmer.
Add the cooked penne to the sauce and mix well.
Season with salt and pepper.
Serve on a plate and garnish with basil.