The man suspected of killing three people and wounding others near Auburn University turned himself in to authorities late Tuesday, authorities said.
Desmonte Leonard, 22, turned himself in to U.S. marshals at the federal courthouse in Montgomery, said Montgomery County Sheriff D.T. Marshall.
It was not immediately clear when Leonard would be transported to Auburn.
Auburn Police Chief Tommy Dawson said Leonard faces three counts of capital murder and two counts of assault. He will be processed into the Montgomery County Jail and "held there for a while," he told reporters.
"You can't run but for so long," the police chief said. "We were going to pursue until we caught him."
Dawson also addressed the families of the victims.
"I know your young men won't be coming home, but hopefully this arrest will give you some closure. It's not over. We're going to continue to investigate this case," he said.
The development came hours after a small army of law enforcement officers swarmed a Montgomery home where Leonard was believed to be hiding and came up empty-handed.
Police surrounded and searched the house for more than six hours, spraying "a powerful dose" of tear gas in hopes of flushing out the man.
They scaled down their efforts at the house Tuesday after they could not find Leonard.
The officers from local, state and federal agencies looked frustrated, CNN affiliate WFSA reported.
Police defended the raid at a news conference early Tuesday after reports surfaced that they had gone to the wrong house and used excessive force.
Montgomery Police Chief Kevin Murphy said he had every reason to believe Leonard had once been in the attic. Police called on him to come out. They did not get a response, although they heard coughing and detected movement in the attic.
By the time they launched a raid on the house, the suspect was gone.
"We didn't go into that house foot by foot. We took it inch by inch," Murphy said. "We didn't want anybody else to get hurt. We did everything right."
Police received three calls about Leonard being in the area; the third was from a woman who owned the house. She said she returned from work to find a man who looked like the suspect sitting on her couch, said Montgomery Mayor Tommy Strange.
She then ran out to her car and called police, he said.
Saturday night's shootings took place at an off-campus apartment complex in Auburn, about 50 miles east of Montgomery. The dead included two former Auburn football players. A current football player was among the wounded.
"This has been an incredibly difficult 72 hours," Gene Chizik, Auburn's head football coach, told reporters Tuesday. "The whole Auburn family is devastated."
"We've got a road ahead of us right now, and it's a long road of grieving," he said.
Police had posted a $30,000 reward for information on Leonard's whereabouts.
Two other men have been jailed on charges of hindering prosecution in the case.
Auburn police said one of those arrested, Jeremy Thomas, 18, left the scene of the shootings with Leonard. Montgomery police say Gabriel Thomas, 41, tried to mislead investigators during the search, and they arrested him Sunday at the request of U.S. Marshals.
Police did not immediately disclose the relationship, if any, between the two men. Both were arrested in Montgomery, but Jeremy Thomas was expected to be transferred to a jail in Lee County, which includes Auburn, police said.
Officers received a call reporting the shooting at the University Heights apartments clubhouse about 10:03 p.m. Saturday, Auburn Police Chief Dawson said Sunday.