"The Curse of La Llorona" brought good fortune at the box office.

The Warner Bros. horror film based on a Mexican legend about a woman who murdered her children and wanders the world looking for them brought in $26.5 million according to studio estimates Sunday, putting it in the top spot on its opening weekend — the last before "Avengers: Endgame" arrives to dominate.

"The Curse of La Llorona" ended the two-week reign of "Shazam!" in the top spot. The DC Comics superhero comedy was second with $17.3 million, continuing its strong run with a three-week domestic total of $121.3 million and giving Warner Bros. a 1-2 finish.

LEAKED 'AVENGERS: ENDGAME' SPOILERS THREATEN TO BREAK THE INTERNET

The inspirational "Breakthrough," the first release from 20th Century Fox since Disney acquired the studio, was third with $11.1 million, a respectable opening for the modestly budgeted faith-based film.

The reign of "La Llorona" will not last. Its top finish came on a quiet Easter weekend as studios cleared a path for the wildly anticipated "Avengers: Endgame," the Disney and Marvel juggernaut that should disintegrate all competition for several weeks to come.

MAGICAL 'SHAZAM!' IS A BOX OFFICE HEREO

Easter weekend saw very few new releases — and none with large budgets — giving smaller films like "La Llorona" a chance to sneak in a few dollars.

"Putting this movie in this sweet spot right before the opening of 'Endgame' really paid big dividends for Warner Bros." said Paul Dergarabedian, senior media analyst for Comscore. "It was a brilliant stroke of scheduling to place a horror movie right there."

HOW 'BREAKTHROUGH' IMPACTED STAR CHRISSY METZ'S FAITH

This image released by Warner Bros. Pictures shows Marisol Ramirez in a scene from

This image released by Warner Bros. Pictures shows Marisol Ramirez in a scene from "The Curse of La Llorona." (Warner Bros. Pictures via AP)

The film overcame grim reviews (32 percent fresh on Rotten Tomatoes) to win over audiences. Some scholars and critics also harshly criticized the film for a marketing campaign that involved using traditional Mexican healers for "spiritual cleansings" before screenings.

It was one of three horror films in the top 10 over the weekend — "Pet Sematary" and "Us" were the other two — at the end of a winter-spring stretch that along with Halloween has become a heyday for the genre.

BOY WHO INSPIRED 'BREAKTHROUGH' FILM SPEAKS OUT

Next week, even though it will still be April, summer essentially begins for Hollywood as Disney looks for "Endgame" to have possibly the biggest opening of all time.

"The summer season usually doesn't start until the first weekend of May, but Marvel can bend the calendar to their will," Dergarabedian said. "They can say, 'We're going the last Friday in April, here's your summer.'"

The receipts for "Captain Marvel" surged in its seventh week this weekend. It brought in $9.1 million to put it past $400 million in domestic box office, with audiences likely wanting to take in a small piece of the Marvel cinematic story before "Endgame."

The comedy "Little" was fifth in its second week for Universal. "Dumbo" finally crossed the $100 million threshold as it faded to sixth in its fourth week of a disappointing performance for a live-action Disney release.

CLICK HERE TO GET THE FOX NEWS APP

Estimated ticket sales for Friday through Sunday at U.S. and Canadian theaters, according to Comscore.

1. "The Curse of La Llorona," $26.5 million

2. "Shazam!" $17.3 million.

3. "Breakthrough," $11.1 million.

4. "Captain Marvel," $9.1 million.

5. "Little," $8.5 million.

6. "Dumbo," $6.8 million.

7. "Pet Sematary," $4.9 million.

8. "Missing Link," $4.4 million

9. "Us," $4.3 million

10. "Hellboy," $3.9 million.