Combine cranberries, sugar and red wine vinegar in a medium saucepan. Bring to a boil. Add onion and garlic, return to a boil and reduce heat. Simmer on low for 10 minutes or until cranberries pop.
Pour into a glass bowl. Stir in basil and oregano. Cool at room temperature and serve with favorite entree.