AT&T Inc. said Friday that it has agreed to buy a chunk of wireless spectrum from Verizon Wireless for $1.9 billion in cash and some of AT&T’s own spectrum.

The fact that the two companies have struck a deal is interesting, considering that AT&T has been on a spending spree in the past year and has been stocking up on wireless spectrum through dozens of acquisitions meant to help the Dallas-based communications giant better compete with its main competitor: Verizon Wireless. AT&T is the country’s second-largest wireless carrier, behind only Verizon Wireless.