Finely chop the tomatoes, onion, and garlic.
Boil the pasta in boiling water.
Heat olive oil in a pan and sauté the garlic and onion.
Add the tomatoes to make the sauce.
Add the cooked pasta to the sauce and mix well.
Season with salt and pepper.
Transfer to a plate and sprinkle with Parmesan cheese.