With the development of 5G communication, massive multiple input multiple output (MIMO) technology is getting more and more attention. Massive MIMO uses a large amount of simultaneous transmitting and receiving antennas to reduce power consumption and raise the level of transmission quality. Meanwhile, the diversification of user equipment (UE) in the 5G environment also makes heterogeneous networks (HetNets) more prevalent. HetNets allow UE of different network standards to access small cells, while the base stations of small cells access a macro base station (BS) to form a multihop wireless heterogeneous backhaul network. However, how to effectively combine these two technologies by efficiently allocating the antennas of each BS during the route construction process of heterogeneous wireless backhaul networks is still an important issue that is yet to be solved. In this paper, we propose an algorithm called preallocated sequential routing (PSR). Based on the links’ channel conditions and the available antennas and location of BSs, it builds a wireless heterogeneous network backhaul topology and adjusts each link’s transmitting and receiving antennas to maximize total utility. Simulation results showed that the proposed algorithm significantly improved the overall utility and the utility of the outer area of heterogeneous networks.