A correctional officer is responsible for maintaining order within a correctional institution, while a law enforcement officer is responsible for enforcing laws in a broader community.