The team's fortunes changed when Mike Shanahan became head coach of the Broncos in 1995. Shanahan was previously Denver's offensive coordinator during those Super Bowl losses, but was fired in 1991 after a power struggle between him and then-head coach Dan Reeves over the offensive personnel. Shanahan then served as the offensive coordinator for the San Francisco 49ers from 1992 to 1994, including the 49ers' Super Bowl XXIX win. Under Shanahan, the San Francisco offense ranked first in the league in total yards gained for all three of his seasons there.