Peel and chop the onion. Melt the fat in a pot and fry the onion cubes in it. Deglaze with red wine and vinegar. Add sugar and let it boil down at medium heat for about 15 minutes.