When sugar is first heated, it begins to melt. As it melts its color starts to change from white to golden brown, and then to dark brown (if you continue heating it). If you apply heat for even longer, it becomes black and gives off unpleasant fumes.