Finely chop the tomatoes and onions.
Heat olive oil in a pan and sauté the chopped onions.
Once the onions turn translucent, add the chopped tomatoes and bring to a boil.
Add salt, pepper, and minced garlic, then simmer.
Add a little pasta cooking water to the sauce to adjust the consistency.
Toss the finished sauce with cooked pasta.