In a small saucepan over medium heat, stir together vinegar, ketchup, cayenne pepper, red pepper flakes, sugar, and water.
Simmer for 15 minutes, or until all sugar dissolves. Season to taste with salt and pepper. Remove from heat and let cool. Use to baste your favorite meat while grilling.