In summer days, the temperature rises and the rails expand. So, in order to allow expansion at the joints of the rails, a small gap is left in between the rails, while laying a railway track. If such a gap is not left at the joints of the rails, the track will get deformed due to thermal expansion. It will cause derailment of trains.