Line up at least 5 marbles of the same color to make them disappear. There is unlimited undo.
Tap on a marble, then tap it's new location, or simply drag it there.
A context menu should be shown when right-clicking or, on touch devices, long-pressing in the game. This menu especially allows to play in full screen and control the volume.