Although there are trains where the engine is in the back or in the middle, typically, the train engine is in the front. The main reason is that the control system and engineering design is easier and more effective when the train engine pulls (i.e. the engine in front) than to push (i.e. engine in the back).