Boil penne pasta in salted water.
Finely chop the onion and garlic.
Sauté the garlic and onion in a pan with olive oil.
Add chopped tomatoes and season with salt and pepper.
Simmer the sauce over medium-low heat for 10 minutes.
Add the cooked penne to the sauce and mix well.
Finish by topping with basil and Parmesan cheese.