Magnets are objects that produce a magnetic force field, which attracts certain metals like iron, nickel, and cobalt. Every magnet has two poles, north and south. Opposite poles attract each other, while the same poles repel each other. This magnetic force is one of the fundamental forces in nature.