Hopefully someone can explain how this relay works?

2 pins connect to magnetize a set of contacts to open or close. The other two are the contacts.
Typically this allows low amounts of energy to control a larger load