user:Htonl/Cape Main Line
{{Infobox rail line
| box_width =
| name = Cape Main Line
| other_name =
| native_name =
| native_name_lang =
| color =
| logo =
| logo_width =
| logo_alt =
| image = SAR Class 6E E1167.JPG
| image_width =
| image_alt =
| caption = A Shosholoza Meyl train passes over the Geelbeks River bridge near Laingsburg
| type = Heavy rail
| system =
| status =
| locale = Western Cape
Northern Cape
North West
Gauteng
| start = Cape Town Station
| end = Johannesburg Park Station
| stations =
| routes =
| ridership =
| ridership2 =
| open = {{Start date|1906|4|6|df=y}}
| event1label =
| event1 =
| event2label =
| event2 =
| event3label =
| event3 =
| close =
| owner = Transnet Freight Rail
| operator = Transnet Freight Rail
Shosholoza Meyl
Premier Classe
Blue Train
Rovos Rail
| character =
| depot =
| stock =
| linelength_km = 1538
| linelength_mi =
| linelength =
| tracklength_km=
| tracklength_mi=
| tracklength =
| notrack =
| gauge = {{Track gauge|1067mm|lk=on}}
| ogauge =
| lgauge =
| minradius =
| racksystem =
| routenumber =
| linenumber =
| el =
| speed_km/h =
| speed_mph =
| speed =
| elevation_m =
| elevation_ft =
| elevation =
| website =
| map = 220px
| map_state = collapsed
}}
The Cape Main Line is a {{convert|1538|km|mi|adj=mid|long}} railway line that connects Cape Town and Johannesburg via Worcester, Beaufort West, De Aar, Kimberley and Klerksdorp. The line, which is owned by Transnet Freight Rail, is one of the main connections in the South African rail network. It carries both passenger and freight traffic.