The line has a total length of 404 kilometers and comprises the Guangzhou–Sanshui railway (Guangsan line), built from 1902 to 1904, and the Sanshui-Maoming railway (Sanmao line), built from 1958 to 1991. (