The engine of a train is attached to the carriages using a system called coupling. This ensures that the engine and carriages stay securely connected. Tap to read in detail.