Yên Bái lies on the railway that runs northwest from the capital and largest city in the north of the country, Hanoi, to the border town of Lào Cai and into Yunnan in China. The railway also passes through the towns of Mau A and Co Phuc. The railway has been a major freight corridor between China and Vietnam since its construction, and runs approximately along the Red River. National Route 70 is the highway that goes from Lào Cai southeast into Yên Bái Province, through Yên Bình just north of the town of Yên Bái, and joins up with National Road 2—which leads to Hanoi—at Đoan Hùng.