Heat the oil in a large Dutch oven over medium high heat. Add the onions with a pinch of salt. Stir occasionally and let caramelize. When they are golden brown, add the garlic. Also keep a cup of water by the cooktop to splash into the pan if the onions start to scorch or stick.