What is this and what does it do?

That is an Echlin (NAPA) headlight relay.