A train horn is a powerful air horn that serves as an audible warning device on electric and Diesel locomotives. The horn's primary purpose is to alert persons and animals to an oncoming train, especially when approaching a grade crossing. The horn is also used for acknowledging signals given by railroad employees, such as during switching operations.