Prepare syrup with sugar and water to 2-3 thread consistency. Warm coconut in a heavy saucepan and pour in the syrup. Stir well and cook till soft lumps form. Spread in a greased plate.
Cool. Sprinkle cardamom powder (optional). Cut into squares and store in an airtight container.