A safety officer is responsible for establishing and maintaining a safe working environment by ensuring compliance with health and safety regulations, developing and implementing safety policies, conducting risk assessments, and providing safety training. They play a crucial role in preventing accidents and injuries in the workplace.