In order to study the effect of tunnel to nearby structure on layered soft soil with different foundations,non linear interaction finite element model was set up, which is composed of structure, foundation, soil and tunnel. On the premise of considering gravity, this interaction model was analyzed with time domain numerical method. The results showed when the structure on raft foundation was close to the tunnel, the total displacement at the top of superstructure took place irreclaimable excursions to another direction, the foundation swung, too. But that of the structure on pile raft foundation was not. When tunnel was under structure, the peak shearing force of frame columns was the biggest; then, the structure closing to tunnel, the structure away from tunnel to ten meter; the structure without tunnel was the smallest. When tunnel was away from structure to ten meter, the influence structure was little. The superstructure on the pile raft foundation turning into plasticity more was than that on the raft foundation, and soils around pile-raft foundation turning into plasticity was less than that around the raft foundation.