The Birthday Ode was written by Burns while in Edinburgh. He had attended a dinner in the city in order to celebrate the Birthday of Charles Edward Stuart, ‘the king across the water’.