Has a school physics experiment or demonstration ever changed the course of human history?
On 21 April 1820, one such demonstration most definitely did. According to physics lore, Hans Christian Øersted was attempting to demonstrate to his students that, according to the scientific understanding of the day, there was in fact no connection between magnetism and electricity.
To this laudable end, he placed a compass needle near to a wire to show that when the current was switched on, the needle would not be affected.
Except that it was affected. Frequently. Each and every time Øersted switched on the electric current, the needle was deflected from pointing North.
Everybody has heard that wise old saw that ‘If it doesn’t work, it’s physics…” except that in this case ‘It did actually work as it was supposed to but in an unexpected way due to a hitherto-unknown-completely-new-branch-of-physics.’
Øersted, to his eternal credit, did not let it lie there and was a pioneer of the new science of electromagnetism.
Push-me-pull-you: or, two current-carrying conductors
One curious consequence of Øersted’s new science was the realisation that, since electric currents create magnetic fields, two wires carrying electric currents will exert a force on each other.
Let’s consider two long, straight conductors placed parallel to each other as shown.
In the diagram above, the magnetic field produced by the current in A is shown by the green lines. Applying Fleming’s Left Hand Rule* to conductor B, we find that a force is produced on B which acts towards conductor A. We could go through a similar process to find the force acting on B, but it’s far easier to apply Newton’s Third Law instead: if body A exerts a force on body B, then body B exerts an equal and opposite force on body A. Hence, conductor A experiences a force which pulls it towards conductor B.
So, two long, straight conductors carrying currents in the same direction will be attracted to each other. By a similar analysis, we find that two long, straight conductors carrying currents in opposite directions will be repelled from each other.
In the past, this phenomenon was used to define the ampere as the unit of current: ‘The ampere is that constant current which, if maintained in two straight parallel conductors of infinite length, of negligible circular cross-section, and placed 1 m apart in vacuum, would produce between these conductors a force equal to 2×10−7 newton per metre of length.‘ However, the 2019 redefinition of the SI system has ditched this and adopted a new definition in terms of the transfer of the elementary charge, e.
Enter Albert Einstein, pursuing an enigma
What is the connection between magnetism and electricity? It was precisely this puzzle that started Albert Einstein on the road to special relativity. It is one of the unsung triumphs of this theory that it lays bare the connection between magnetism and electricity.
In what follows, we’re going to apply Einstein’s analysis to the situation of two long, straight current-carrying conductors. Acknowledgment: I’m going to following a line of argument laid out in Beiser 1988: 19-22.
It’s gotta be perfect (or ‘idealised’, if you prefer)
Let’s consider two idealised conductors A and B both at rest in the inertial reference frame of the laboratory. The flow of charge in both conductors is made up of positive and negative charge carriers moving in opposite directions with a speed v.
None of the charges in A interact with the other charges in A because we are considering an idealised conductor. However, the charges in A will interact with the charges in B.

Flip the inertial reference frame
Now let’s look at the situation from the inertial reference frame of one of the positive charges in A. For simplicity, we can focus on a single positive charge in A since it does not interact with any of the other charges in A.
With reference to this inertial frame, the positive charge in A is stationary and the positive charges in B are also stationary.
However, the inertial frame of the laboratory is moving right-to-left with a speed v and the negative charges are moving right-to-left with a speed of 2v.

Since the positive charges in B are stationary with respect to the positive charge in A, the distance between them is the same as it was in the laboratory inertial frame. However, since the negative charges in B are moving with speed 2v with respect to positive charge in A, the spacing between is contracted due to relativistic length contraction (see Lottie and Lorentzian Length Contraction).
Because of this, the negative charge density of B increases since they are closer together. However, the positive charge density of B remains the same since they are stationary relative to the positive charge in A so there is no length contraction.
This means that, as far as the positive charge in A is concerned, conductor B has a net negative charge which means the positive charge experiences an attractive Coulomb’s Law electrical force towards B.
A similar analysis applied to electric currents in opposite directions would show that the positive charge in A would experience a repulsive Coulomb’s Law electrical force. The spacing between the positive charges in B would be contracted but the spacing between the negative charges remains unchanged, so conductor B has a net positive charge because the positive charge density has increased but the negative charge density is unchanged.
Magnetism? THERE IS NO MAGNETISM!!!!
So what we normally think of as a ‘magnetic’ force in the inertial frame of the laboratory can be explained as a consequence of special relativity altering the charge densities in conductors. Although we have just considered a special case, all magnetic phenomena can be interpreted on the basis of Coulomb’s Law, charge invariance** and special relativity.
For the interested reader, Duffin (1980: 388-390) offers a quantitative analysis where he uses a similar argument to derive the expression for the magnetic field due to a long straight conductor.
Update: I’m also indebted to @sbdugdale who points out the there’s a good treatment of this in the Feynman Lectures on Physics, section 13.6.
Notes and references
* Although you could use a non-FLHR catapult field analysis, of course
** ‘A current-carrying conductor that is electrically neutral in one frame of reference might not be neutral in another frame. How can this observation be reconciled with charge invariance? The answer is that we must consider the entire circuit of which the conductor is a part. Because a circuit must be closed for a current to occur in it, for every current element in one direction that a moving observer find to have, say, a positive charge, there must be another current element in the opposite direction which the same observer finds to have a negative charge. Hence, magnetic forces always act between different parts of the same circuit, even though the circuit as a whole appears electrically neutral to all observers.’ Beiser 1988: 21
Beiser, A. (1988). Concepts of modern physics. Tata McGraw-Hill Education
Duffin, W. J. (1980). Electricity and magnetism. McGraw-Hill.