Slice garlic. Heat oil in a large saucepan over medium-low heat, then add garlic. Cook and stir 1 to 2 minutes, or until golden and fragrant.
Remove from heat. Set aside to cool while you continue. This infuses the oil with the garlic flavor— the more time it stands the more intense it will taste.
Chop onion. Add to garlic, and return to medium-low heat. Cook and stir 3 to 5 minutes, until soft and translucent.
Chop tomatoes then add to saucepan (along with their juices), tomato paste, bay leaves, salt, and pepper. Simmer on low (uncovered) 15 to 30 minutes.
Chop fresh basil and add along with optional red wine. Cook another 5 minutes.