His appearance became contentious last month when McCartney's worldwide concert promoter, Barrie Marshall, mentioned he had visited the 49ers' new Levi's Stadium in Santa Clara as part of negotiations about a possible opening concert there in August.
The San Francisco Chronicle reports city officials felt slighted, since San Francisco Mayor Ed Lee had personally invited McCartney to close the "Stick." The Beatles played their final paid concert there in 1966.
San Francisco's Recreation and Park Department Director Phil Ginsberg says the city's persistence helped seal the deal.
This article was originally published on THR.com.