For the second year in a row, Beckham and the Los Angeles Galaxy beat the Dynamo in the MLS Cup final Saturday afternoon at Home Depot Center.

The Dynamo were much more competitive in the 2012 MLS Cup final, but it wasn’t enough to avoid a 3-1 defeat before a sellout crowd of 30,510. Los Angeles center back Omar Gonzalez tied the score with a header in the 61st minute, and Landon Donovan completed the come-from-behind rally with a penalty two minutes later.

Robbie Keane sealed the victory in stoppage time by converting a penalty kick after he was taken down in the box by Dynamo goalkeeper Tally Hall.

The rematch of the 2011 MLS Cup final was billed the last game of Beckham’s six-year sojourn of Major League Soccer with the Los Angeles Galaxy.

Four-time finalists and winners of the 2006 and 2007 final, the Eastern Conference champion Dynamo couldn’t avoid their second consecutive defeat in the final at the Galaxy’s home stadium.

A year after they were overmatched in the final, though, the Dynamo wasted little time showing they would be more competitive in the rematch. They dominated possession in the first 11 minutes and also got a menacing shot off in the opening minutes when Ricardo Clark had a shot punched out of danger by Galaxy goalkeeper Josh Saunders.

The Dynamo had only shot on target and one corner kick in the entire 90 minutes of the 2011 final, but they had three shots on target and four corner kicks in the first half alone Saturday.

The Galaxy definitely had a great opportunity to take an early lead. In the 12th minute, the Galaxy caught the Dynamo with a counterattack. Beckham played the ball from his defensive half to Keane on the left wing. With Jermaine Taylor desperately rushing back to cut the space as Donovan sprint down the right side, Keane passed to Donovan.

Fortunately for the Dynamo, Donovan’s shot went wide right.

Kofi Sarkodie almost gave the Dynamo the lead in the 26th minute with a run down the right wing, but Saunders tipped his shot over the crossbar for a corner kick. Keane had a goal disallowed because of an off-side call, which replays show was correct.

Calen Carr almost made it 2-0 in the 56th minute, but Saunders made a diving save on his header. Gonzalez tied the score at 1 in the 61st minute when he headed a ball past Hall. A minute later, Keane had another goal disallowed when Gonzalez was called for pushing in the box when he headed a ball into Keane, who kicked it in.

Nothing could save the Dynamo in the 63rd minute when they were called for a penalty when Clark was called for handling the ball. Donovan converted the penalty near the right post to take a 2-1 lead. Keane, who had two goals disallowed, converted the final goal when he was taken down in the box in stoppage time.