A pulsar is a highly magnetized and rapidly rotating neutron star that emits beams of electromagnetic radiation out of its magnetic poles. As the pulsar rotates, these beams of radiation sweep across space like a lighthouse, producing regular pulses of radiation that can be detected by astronomers.