The Sentinel of Liberty has done something Lord Voldemort never could: defeat Harry Potter.

Marvel's Captain America: The First Avenger opened Friday to an estimated $28.5 million, a figure that includes the $4 million gross from midnight screenings, unseating Warner Bros.' Harry Potter and the Deathly Hallows: Part 2 from its spot atop the North American box office.

The performance of the Joe Johnston-directed film is on par with the $25.5 million opening of Marvel's Thor back in May, which The Hollywood Reporter notes may mean Paramount Pictures' original projection is a little on the low side. The studio had predicted Captain America would score an opening weekend midway between X-Men: First Class' $55.1 million and Thor's $65 million.

Harry Potter slipped into second place, beginning its second weekend with a $14.6 million domestic haul. Don't weep for the Boy Who Lived, though: Friday's numbers bring the cumulative North American gross of the franchise finale to a staggering $240.7 million.

Captain America opened in 3,700 locations, 2,500 of which showed the film in 3D.

The film stars Chris Evans, Hayley Atwell, Hugo Weaving, Sebastian Stan, Tommy Lee Jones, Dominic Cooper, Toby Jones, Stanley Tucci, Richard Armitage, Natalie Dormer, Neal McDonough and Samuel L. Jackson.