Guided transport of a relativistic electron beam in solid is achieved experimentally by exploiting the strong magnetic fields created at the interface of two metals of different electrical resistivities. This is of substantial relevance to the Fast Ignitor approach to fusion energy production [M. Tabak, Phys. Plasmas 12, 057305 (2005)10.1063/1.1871246], since it allows the electron deposition to be spatially tailored-thus adding substantial design flexibility and preventing inefficiencies due to electron beam spreading. In the experiment, optical transition radiation and thermal emission from the target rear surface provide a clear signature of the electron confinement within a high resistivity tin layer sandwiched transversely between two low resistivity aluminum slabs. The experimental data are found to agree well with numerical simulations.