MIAMI GARDENS, Fla. (AP) — For 42 minutes the Buffalo Bills did an outstanding job stifling the Miami Dolphins' offense. It was the final 18 minutes that dropped the Bills to 5-5.

Ryan Tannehill tossed second-half touchdown passes to Brandon Gibson and Jarvis Landry while the Dolphins were scoring 19 unanswered points to turn a 9-3 deficit into a 22-9 win over the visitingBills. Tannehill was sacked five times before finishing 26 of 34 for 240 yards and no interceptions.

Miami's defense was stellar, holding Buffalo to 54 rushing yards and limiting Sammy Watkins to three receptions for 32 yards.

The outcome leaves the Dolphins at 6-4, their best 10-game start in six years.