Aiming at the problem that the depth of network is related to the size of training image patches and improving the matching accuracy for the weak texture and edge regions, a multiscale attention network for stereo matching is presented. The method is divided into two stages:in the first stage, a deep network for computing matching cost is proposed, which is composed of basic layer and scale layer, in the second stage, a disparity refinement network based on multiscale attention is proposed, in which multiple disparity clues are combined and multiscale attention is added to boost stereo matching accuracy. The percentage of 3-pixel bad points on KITTI 2012, KITTI 2015, and SceneFlow is 1.13%, 1.87%, and 2.29%, respectively. Experiments show that compared with the current domestic and foreign advanced methods, a stereo matching method based on multiscale attention network made a great improvement in matching accuracy, especially better improvement for the weak texture and edge regions.