Cook the pasta as usual. Chop the onions and olives into small pieces. Heat the oil in a pan and sweat the onions in it until translucent.
Then add olives, capers, anchovies, tomato puree and water. Add the basil, thyme, broth and chopped garlic. Let the whole thing cook for about 15 minutes.