An X-ray collimator is a device used in radiography to narrow the beam of X-rays to reduce patient exposure and improve image quality by minimizing scatter radiation. It typically consists of adjustable lead shutters that shape the X-ray beam to the desired size and shape, enhancing diagnostic accuracy and safety.