Quanta Services , a builder of energy and telecommunications networks, said on Monday it would buy InfraSource Services  for $1.26 billion in order to expand its services and increase its national presence.

The all-stock deal calls for the exchange of 1.223 shares of Houston-based Quanta's common stock for each outstanding common share of InfraSource. That is about $30.13 per share, a 17.4% premium over the closing price of InfraSource stock on March 16, according to the companies.