Place oil, onion and garlic into the Thermomix bowl and chop 3 seconds/ speed 5.
Add red wine and cook 10 minutes/Varoma/speed 1/MC off.
Add tomatoes, fennel seeds, salt and pepper and cook 20 minutes/100°C/speed 1.
Taste and adjust seasoning, adding sugar if required.
Add basil and stalks and allow to infuse through the sauce while it cools. Remove the basil prior to use.
Store in sterilised bottles in the fridge until use.