This is the Whomping Willow. The willow was on the grounds even before Snape started teaching! When someone goes near it or on it, it moves around trying to hurt or kill you. It will only stop doing that if you put a spell on it or pull down a special branch which only a few people know where it is.