。
I went to Kyoto by train.
Literal
Train [by-で] Kyoto [until-まで] went.
まで marks the endpoint of travel (京都まで = 'as far as Kyoto'). The で marks the means. Choosing まで rather than に for the destination implies 'going all the way to,' whereas に would more neutrally mark the arrival point.