In a saucepan, combine rhubarb with sugar over low heat. When the rhubarb starts to soften, but before it falls apart, about 5 minutes, use a slotted spoon to transfer it to a bowl.
Cook down the remaining liquid in the pan until it thickens and turns syrupy, about 5 minutes longer. (This condenses and intensifies the rhubarb flavor.) Add the syrup to the bowl with the rhubarb and let cool. Compote will keep for at least a week in the fridge.