 The 49ers head coach at the time, Jim Harbaugh, had a contentious history with Seahawks coach Pete Carroll due to Harbaugh's previous job as coach of at Stanford against Carroll's USC Trojans.While the 49ers had the upper hand in the early stages of the rivalry, winning the first three head-to-head contests against the Carroll in 2011 and Week 7 of 2012, the tide began to turn when the Seahawks defeated the 49ers soundly in Week 16 of 2012 on prime time by a score of 42–13.Both teams reached the playoffs that year, and the 49ers reached Super Bowl XLVII only to lose to the Baltimore Ravens.