Heat the olive oil in a saucepan over medium heat and slowly roast the peeled, sliced garlic with the sugar and salt until golden brown. It is best to carefully mash and mix with a fork, set the saucepan aside.
Remove the oil from the tomatoes with kitchen paper and cut in half. Wash, core and halve the Thai chili. Roast the walnuts in a coated pan (do not let them get too dark, otherwise they will be very bitter, this also applies to the garlic caramel!).
Then put all the ingredients in a tall container and puree with the blender. Filled into a sterilized glass with boiling water and sealed with cling film or screw cap, the pesto can be kept in the refrigerator for 6 - 8 weeks. Always cover residues that should be returned to the cooling with a little oil on the surface!
The pesto is suitable for bread, pasta, potatoes, meat, cheese as a vegetable dip and also for crackers, chips & Co.