In rail transportation operations, locomotives are primarily used for switching/shunting, transporting freight trains, and hauling passenger trains.