During combat you can match all the same-color jewels that spawn at the bottom of the screen in order to attack.  
The main objective is to attack all the enemies until their health (the bar above them) is depleted:

If 3 or more gems are connected a more powerful version will appear, a special orb:

Also keep in mind that if the time runs out, the battle will be lost: