In order to achieve an optimal anti-seismic behavior,or rather stability,the out-of-plane stability of infill wall in frame has been researched with the shaking test of four sets of two-layer infill wall,in which four different connection modes of filled with inclined bricks on the top,disconnection,flexibility and semi-flexibility were adapted.The acceleration and displacement response of the specimens were analyzed under the seismic load.Also,some feasible connection modes were gained by comparing the response of infill walls.Finally,the calculation of earthquake of infill wall was held.The results showed that seismic responses of the infill walls whose connect with frame in form of flexibility and semi-flexibility modes are weaker than others obviously,and their integrality is better.Thus the conclusion could be drawn that out-of-plane stability of the specimens with connection modes of flexibility and semi-flexibility are better than those with the connection modes of filled with inclined bricks on the top and disconnection.The research results can provide evidence for establishing specifications and directing the construction and therefore help reduce the casualties and property loss caused by earthquake disasters.