Often used in contexts involving cunning or deceit.
La treta del mago sorprendió a todos los espectadores en el teatro.
The magician's trick surprised all the spectators at the theater.
La treta que usó para ganar la partida fue ingeniosa y sorprendió a todos los jugadores.
The trick he used to win the game was clever and surprised all the players.