A batsman can get out for obstructing the field. It is a very rare event. This occurs when he hinders one of the fielding players to hit the wicket or to get the ball. For example, he can do so hitting or kicking the ball away.
Notice, the batsman can not get out because he ran in between a fielding player, who had the ball and attempted to throw it at the wicket, and the wicket, to secure it. This is quite common and is not illegal.