EAST RUTHERFORD, N.J. (AP) — Tony Romo threw two touchdowns and led a drive that set up Dan Bailey' 35-yard field goal on the final play as the Dallas Cowboys defeated the Giants 24-21 Sunday.

Dallas ended the Giants' four-game winning streak and most of their playoff hopes.

The victory moved the Cowboys (6-5) into a first-place tie with idle Philadelphia in the NFC East and left the Giants (4-7) wondering about what they gave away in two losses to Dallas.

Romo hit two crucial third-down passes on the 14-play drive that covered the final 4:45 after New York tied the game on a 4-yard touchdown pass from Eli Manning to Louis Murphy Jr. and a 2-point conversion run by Andre Brown.

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

Romo hit Jason Witten on TDs of 20 and 2 yards, and Dallas got a defensive touchdown on a 50-yard fumble return by Jeff Heath.