Apart from spanning the Rhymney river, the viaduct also had to span the Brecon and Merthyr Railway's station on the south side, and curve slightly across the valley to initially form a junction with the B&MR on its northern side, before entering the Bryn Tunnel ( 398 yards ).