Understanding how buried structures respond to cyclic loading is crucial for designing earthquake-resistant underground infrastructure. The complexity of the dynamic response of these underground structures is accentuated when accounting for their interaction with adjacent buildings. This study focuses on the impact of the lateral distance between a shallow rectangular tunnel and an adjacent residential structure on dynamic soil-structure interaction, employing two dynamic centrifuge tests. Particle Image Velocimetry technique was adopted to observe the developed mechanisms of liquefied soil deformation, tunnel uplift, and foundation settlement. Results show the pronounced effects on soil deformation above the tunnel crown with a reduction in the tunnel-building separation distance. The distribution of excess pore pressure along the tunnel lining will be presented. Tunnel manifested additional lateral movement and reduced uplift when the adjacent building was in close proximity. A decrease in the tunnel-building distance contributed to a reduction of building rotation, primarily due to the significant mitigation of non-uniform settlement under the footing. Overall, the soil deformation mechanism around the tunnel and the building will be shown to change depending on the separation distance between them.