Step 1. In a large bowl, mix together the grated carrot, ginger, cider vinegar, chillies, coriander seeds, cinnamon sticks, star anise and salt.
Step 2. Cover the bowl with a clean tea-towel and set aside to marinate for 24 hours.
Step 3. Pour the marinated carrot mixture into a large preserving pan. Add the garlic cloves and the water.
Step 4. Bring to the boil, then reduce the heat and simmer for 10 minutes.
Step 5. Stir in the sugar, bring back to the boil and boil hard for 45 minutes until the mixture becomes thick and jammy.
Step 6. Take off the heat and ladle at once into hot sterilized jars with tightly fitting lids. Cover and set aside until serving.