Door closer is a mechanical device, often hydraulic or spring-based, that automatically closes a door after it's opened, providing convenience, safety, and security. Its purpose is to return the door to a closed position without manual intervention, which enhances security by keeping doors latched, prevents fire and smoke spread by ensuring fire doors are shut, saves energy in air-conditioned buildings, and prevents injuries from slamming doors or being pinched.