Rinse the anchovies well, drain, and combine in a blender or food processor with the remaining ingredients. Puree until smooth, strain, and discard anything what will not strain easily.
Transfer to a heavy bottomed pan. Simmer for 30 minutes, stirring often, and add water as needed to avoid sticking. Cool and store in the refrigerator.