Lenz's Law
When an emf is generated by a change in magnetic flux according to Faraday's Law, the polarity of the induced emf is such that it produces a current whose magnetic field opposes the change which produces it. The induced magnetic field inside any loop of wire always acts to keep the magnetic flux in the loop constant. In the examples below, if the B field is increasing, the induced field acts in opposition to it. If it is decreasing, the induced field acts in the direction of the applied field to try to keep it constant.