Remove all cards from the game field (pyramid or other shape). You can only remove pairs of cards with the same rank (such as two queens or two 5s). To select a pair tap the first card, next tap the second card. Also you can drag and drop a card to another one.

This image is a schematic representation, not a screenshot from the game. Screenshots are platform specific. You can see screenshots in the store.