Peel and slice the onions
heat the oil in a large pan, add the sliced onions and cook down for 25-30 mins on a low to medium heat, stirring occasionally
add 100g of the sugar and cook for a futher 15 mins
add the remaining ingredients and allow to continue cooking for another hour and a half
When the marmalade is about 15 minutes from finishing cooking, pre heat the oven to 160C, wash your jars in hot soapy water and place in the oven on a tray for at least 10 mins to sterilise
while the jars are still hot, spoon the onion mixture in and seal the lids on immediately
allow to cool and store in a cool dry place, once opened store in the refrigerator