Finely chop onion and garlic.
Add olive oil to a frying pan and sauté the garlic over low heat.
Add the onion and cook until it becomes translucent.
Add chopped tomatoes and basil; simmer over medium heat.
Season with salt and pepper.
Blend everything until smooth to complete the sauce.