At the scene of the accident, police found five of the nine compartments at the side of the track.
The accident also injured about 30 passengers, police said. The victims included the driver of the truck.
The initial investigation found that the truck had a malfunctioning brake, resulting in its slamming into a barrier blocking the traffic and hitting the passing train.
The truck was heading to Phetchburi’s Muang district.