Hagel voted in favor of the Secure Fence Act of 2006, which aimed to build a 700 miles double fence along the Mexico–United States border and appropriated $1.2 billion for the fence and a systematic surveillance system.