'Straight Outta Compton' Goes Straight to No. 1 at Box Office

See what other movies did well over the weekend.

— -- It was a W.I.N. for the N.W.A. biopic "Straight Outta Compton" at the weekend box office.

The film, which chronicles the rise of the influential rap group, earned an estimated $56.1 million to open in first place.

After two weekends on top, "Mission: Impossible -- Rogue Nation" fell to the second spot, collecting $17 million.

Here are the top 10 movies from Friday through Sunday, with estimated ticket sales, according to Rentrak:

1. "Straight Outta Compton," $56.1 million

2. "Mission: Impossible -- Rogue Nation," $17 million

3. "The Man From U.N.C.L.E.," $13.5 million

4. "Fantastic Four," $8 million

5. "The Gift," $6.5 million

6. "Ant-Man," $5.5 million

7. "Vacation," $5.3 million

8. "Minions," $5.2 million

9. "Ricki and the Flash," $4.6 million

10. "Trainwreck," $3.8 million