Evacuation is a critical life-saving action, especially in devastating natural hazards such as near-field tsunamis. However, the development of effective evacuation measures remains challenging to the extent that a successful example has been referred to as a ‘miracle’. Here we show that urban structures have the potential to reinforce attitudes towards evacuation and significantly influence the success of tsunami evacuation. Agent-based evacuation simulations revealed that a distinctive root-like urban structure formed in ria coasts reinforces positive evacuation attitudes by effectively gathering evacuation flows and leads to higher evacuation rates compared to typical grid-like urban structures, which can explain the regional differences in the number of casualties in the 2011 Tohoku tsunami. Although a grid-like structure reinforces negative attitudes under low evacuation tendencies, with leading evacuees, its dense feature helps to propagate positive attitudes and drastically improve evacuation tendencies. These findings pave the way for making successful evacuation inevitable through harmonised urban and evacuation plannings.