When current flows around a long, straight conductor, it creates a circular magnetic field around it. Changing the direction of the current changes the direction of the magnetic field. The larger the current the closer you are, the stronger the field.