The rails expand in summer due to increase in the temperature of the atmosphere. Also, they expand due to rise in temperature caused by the friction between the rails and the wheels of the running train. If there is no gap between successive rails of a railway line, the rails would bend due to expansion. This bending and twisting of the rails would cause accidents. Hence, a gap is kept between successive rails of a railway line to make provision for their expansion in summer.