Combine sugar and water in a medium saucepan. Bring to boil; add cranberries, return to boil. Reduce heat and boil gently for 10 minutes, stirring occasionally. Cover and cool completely at room temperature.
https://www.oceanspray.com/Recipes/By-Course/Sauces-Sides-and-Salads/Fresh-Cranberry-Sauce