“Pirates of the Caribbean: At World’s End” unburied a treasure over the holiday weekend.

The third film in the “Pirates” franchise, with suave swashbucker Johnny Depp, easily landed in first place, with an estimated three-day booty of $126.5 million, according to studio estimates released yesterday.

“Disney is definitely rolling in the doubloons, as ‘Pirates of the Caribbean: At World’s End’ has plundered the box office,” said Jeff Bock, an analyst with movie-business tracker Exhibitor Relations.

Meanwhile, “Shrek the Third,” last week’s No. 1 film, was bumped into second place, with $51 million, raising its total to $201.4 million.

“Spider-Man 3” spun a $13.7 million web over the past three days, hiking its cumulative gross to $303.3 million.

By comparison, the horror film “Bug” debuted over the weekend with a measly $3.3 million.

” ‘Bug’ pretty much got squashed, but it was good enough for fourth place,” said Bock.

“Waitress,” the comedy by Adrienne Shelly, the actress-director who was murdered last year, moved into the top five, with $3.1 million.

” ‘Waitress’ has been performing well in limited release,” said Bock. “This was expected because the buzz has been building on this film.”