Start by heating olive oil in a Dutch oven or large pot over medium heat.
Add the diced onion, celery, and carrots - this classic combination of vegetables forms what Italian cooks call a soffritto.
Next, add the minced garlic, salt, black pepper, and red pepper flakes (if you're using them). These spices need just 2-3 minutes to release their flavors.
Pour in the white wine (or vegetable broth) and use your spoon to scrape up any browned bits from the bottom of the pot - this adds extra flavor to your soup. Stir in the fresh basil and thyme.