Caponata is a spectacular Sicilian dish, made best 1 to 2 days in advance to give the flavours time to mellow. Use round purple eggplant, if possible, rather than the elongated dark ones.
Cut the eggplants in cubes and sauté in olive oil with sliced garlic, salt and pepper; put aside. Separately sauté the finely sliced onions in olive oil, salt and pepper; put aside.