By shaking the layers (phases) well, you increase the contact area between the two phases.
The sugar will move to the phase in which it is most soluble: the water layer.
|
|
After waiting for a while, two clear layers are formed again.
Organic Web Chem University of Alberta