Magnetically sensitive sharks don't like samarium, neodymium, and praseodymium, according to a report by BBC on a company that is experimenting with rare earth elements to protect swimmers from getting bit.
Eric Stroud, who runs Shark Defense, accidentally stumbled upon the discovery after dropping a magnet from his workbench and into a pool of nurse sharks that he happens to keep in his basement:
"That night, we put magnets into the water and couldn't believe the nurse sharks were extremely distressed and stayed away from them," he says.
Stroud thinks that was the moment he discovered that magnets repel sharks.
Source:
http://www.mining.com/repelling-sharks-rare-earth-elements-can-handle-that/