The Boston Marathon bombing suspect was captured alive but wounded Friday night after police found him holed up in a boat in a suburban backyard following a bloody rampage and a daylong manhunt, law enforcement sources said.

The arrest of Dzhokhar Tsarnaev, 19, ended five days of terror sowed by the double bombing at the marathon finish line, which killed three people, wounded 176 and left the city of Boston on edge.

"We got him," Boston Mayor Tom Menino tweeted.



"CAPTURED!!! The hunt is over. The search is done. The terror is over. And justice has won," the Boston Police Department said on its Twitter account.



Cops cheered as the suspect was taken into custody in Watertown, Mass., just before 9 p.m. Later, the people of Watertown flooded the streets, cheering every passing police car and armored vehicle in an impromptu parade. Chants of "USA! USA!" broke out. In Boston, people danced on the streets outside Fenway Park.



(Read More: Who Are the Suspects?)



Police cornered Tsarnaev -- a naturalized U.S. citizen of Chechen origin -- around 7 p.m., less than an hour after police lifted a stay-indoors order for the city and its suburbs.

A resident had gone outside to smoke and noticed a tarp on the boat was flapping, a relative told NBC News. When he went to investigate, he saw what looked like a curled-up person and bloody clothes.

The man "freaked out," ran into the house and called police, the relative said.

Thermal imaging from helicopters confirmed there was a person in the boat, officials said.

(Read More: How Facial Recognition Could Help Catch Criminals)