Place the garlic, onions, basil and spices into a bowl or lidded jar. Add in the vinegar and blend.
Slowly pour the oil into the vinegar mixture, whisking rapidly. Alternately, pour into jar, seal and shake vigorously.