How does a compass needle respond when a compass is placed with in a magnetic field?

If a magnetic compass needle is placed in a magnetic Field , its needle deflects and points in the north and south directions