Combine sugar and water in a small saucepan. Bring to a boil, frequently stirring to dissolve sugar. Reduce heat, add lavender, and simmer for 2 minutes. Remove from heat, add basil, and cover and steep for30 minutes. Strain out basil and lavender; save and store the liquid in the refrigerator for up to a month.