Heat the oil in a medium-based saucepan over low-medium heat. Add the onion and garlic, saute until softened. Add the peppers and cook for 15 minutes, until they begin to soften. Add the tomato, vinegar, oregano and sugar. Cook for 15 minutes, until softened and flavours have developed. Season with salt and pepper.
Serve hot or cold.