Bring water to a boil, add sugar, and stir to dissolve.
Add in rosemary spears. Let infusion boil for 60 seconds. Remove pan from heat and steep for 30 minutes.
Pour cooled syrup through mesh strainer and into glass jar. Store in fridge for up to 2 weeks.