The two ends of the earth—the North Pole and the South Pole—have opposite magnetic fields.
(The two ends of the earth; have; opposite magnetic fields)
The two ends of the earth
have
opposite magnetic fields