A steal occurs when a defensive player forces an offensive player to turn the ball over, resulting in a change of possession. To put is simply, a steal is taking the ball away from your opponent.
To do this the defensive player can swipe the ball away from the offensive player while he/she is dribbling, deflect and control a pass intended for another offensive player, or intercept a pass intended for an offensive player.