Dice the tomatoes and onions.
Heat olive oil in a pan and sauté the onions.
When the onions become translucent, add minced garlic and continue sautéing.
Add the tomatoes and simmer over medium heat.
Add salt, pepper, and basil, then reduce until thickened.