2017–2018: Breakthrough with Invasion of Privacy
On January 20, 2017, Cardi B released her second mixtape, Gangsta Bitch Music, Vol. 2. In February 2017, Cardi B partnered with MAC Cosmetics and Rio Uribe's Gypsy Sport for an event for New York Fashion Week. In late February, Cardi B signed her first major record label recording contract with Atlantic Records. On February 25, 2017, Cardi B was the opening act for East Coast hip hop group The Lox's Filthy America... It's Beautiful Tour, alongside fellow New York City-based rappers Lil' Kim and Remy Ma. In April 2017, she was featured in i-D's "A-Z of Music" video sponsored by Marc Jacobs. Cardi guest-starred on the celebrity panel show Hip Hop Squares, appearing on the March 13 and April 3, 2017, episodes. She also released the freestyle "Red Barz".
In May 2017, the nominees for the 2017 BET Awards were announced, revealing that Cardi B had been nominated for Best New Artist and Best Female Hip-Hop Artist. Although Chance the Rapper and Remy Ma won those categories, respectively, Cardi B performed at the BET Awards Afterparty show. On June 11, 2017, during Hot 97's annual Summer Jam music festival, Remy Ma brought out Cardi B, along with The Lady of Rage, MC Lyte, Young M.A, Monie Love, Lil' Kim, and Queen Latifah, to celebrate female rappers and perform Latifah's 1993 hit single "U.N.I.T.Y." about female empowerment. In June 2017, it was revealed that Cardi B would be on the cover of The Fader's Summer Music issue for July/August 2017. She performed at MoMA PS1 on August 19 to a crowd of 4,000.
On June 16, 2017, Atlantic Records released Cardi B's commercial debut single, "Bodak Yellow", via digital distribution. She performed the single on The Wendy Williams Show and Jimmy Kimmel Live! The song climbed the charts for several months, and, on the Billboard Hot 100 chart dated September 25, 2017, "Bodak Yellow" reached the number one spot, making Cardi B the first female rapper to do so with a solo single since Lauryn Hill's "Doo Wop (That Thing)" debuted atop the chart in 1998. The song stayed atop the charts for three consecutive weeks, tying with American pop singer Taylor Swift's "Look What You Made Me Do" as the longest running female at the number one spot in 2017.
Cardi B became the first person of Dominican descent to reach number one in the history of the Hot 100 since it was launched in 1958. An editor of The New York Times called it "the rap anthem of the summer". Selected by The Washington Post and Pitchfork music critics as the best song of 2017, "Bodak Yellow" was eventually certified Diamond by the Recording Industry Association of America (RIAA). The song received nominations for Best Rap Performance and Best Rap Song at the 60th Grammy Awards. It won Single of the Year at the 2017 BET Hip Hop Awards. With her collaborations "No Limit" and "MotorSport", she became the first female rapper to land her first three entries in the top 10 of the Hot 100, and the first female artist to achieve the same on the Hot R&B/Hip-Hop Songs chart. In October 2017, Cardi B headlined Power 105.1's annual Powerhouse music celebration, alongside the Weeknd, Migos, and Lil Uzi Vert, at the Barclays Center in Brooklyn, New York. In December, she released two songs: a collaboration with Puerto Rican singer Ozuna titled "La Modelo", and "Bartier Cardi", the second single from her debut album.
On January 3, 2018, Cardi B was featured on the remix of Bruno Mars' single "Finesse", and appeared in the 90s inspired video. It reached the top three on the Hot 100, Canada and New Zealand. On January 18, 2018, Cardi B became the first female rapper to have five top 10 singles simultaneously on the Billboard Hot R&B/Hip-Hop Songs chart. She released another single, "Be Careful", on March 30, 2018, a week before her album's release.
Her debut studio album, Invasion of Privacy, was released on April 6, 2018, to universal acclaim from music critics. Editors from Variety and The New York Times called it "one of the most powerful debuts of this millennium" and "a hip-hop album that doesn't sound like any of its temporal peers," respectively. The album entered at number one in the United States, while she became the first female artist to chart 13 entries simultaneously on the Billboard Hot 100, on the chart issue dated April 21. It became the most streamed album by a female artist in a single week in Apple Music, and the largest on-demand audio streaming week ever for an album by a woman. Cardi held the latter record until 2019. The album's title reflects Cardi B's feeling that as she gained popularity her privacy was being invaded in a variety of ways. Following the album's release, during a performance on Saturday Night Live, Cardi B officially announced her pregnancy, after much media speculation. She also co-hosted an episode of The Tonight Show Starring Jimmy Fallon.
After the release of "Girls" in May 2018, a collaboration where she had a featured verse, Cardi B responded to accusations of the song trivializing LGBT relationships; she tweeted, "We never try to cause harm or had bad intentions with the song." She went on to add, "I personally myself had experiences with other women." Several months later, in July 2018, Invasion's fourth single, "I Like It", which features vocals from Bad Bunny and J Balvin, reached number one on the Hot 100; this marked her second number one on the chart and made her the first female rapper to achieve multiple chart-toppers. It received critical acclaim, with Rolling Stone naming it "the best summer song of all time" in 2020. Her collaboration with Maroon 5, "Girls Like You", also reached number one on the Hot 100 chart, extending her record among female rappers and also making her the sixth female artist to achieve three number-one singles on the chart during the 2010s. The song's music video has received more than 3.8 billion views on YouTube and was the fifth-best selling song of the year globally.
With "Girls Like You" following "I Like It" at the top of the Billboard Radio Songs chart, Cardi B became the first female rapper to replace herself at number one on the chart. The single spent seven weeks atop the Hot 100, making Cardi the female rapper with the most cumulative weeks atop the chart, with eleven weeks. It spent 33 weeks in the top 10, tying both Ed Sheeran's "Shape of You" and Post Malone and Swae Lee's "Sunflower" for the longest top 10 run in the chart's archives at the time. In September 2025, Invasion of Privacy was certified six-times platinum by the RIAA. With the thirteen tracks, it became the first album in history to have all of its songs certified platinum or higher in the US.
Cardi B received the most nominations for the 2018 MTV Video Music Awards with 12 mentions—including for Video of the Year, winning three awards. She tied with Drake for the most nominations at the 2018 American Music Awards. She won three AMAs and performed at the ceremony. Her single "Money" earned her a fourth Video Music Award, with visuals that feature Cardi playing characters in different locations, including in an art museum, a bank and a strip club. Her collaboration with DJ Snake "Taki Taki" topped the charts in a number of Hispanic countries, made Cardi B the first female rapper to top the Spotify Global 50 chart, and has garnered more than 2 billion views. Both singles were certified multiple-platinum by the RIAA. People en Español named her Star of the Year, and Entertainment Weekly deemed her "a pop culture phenomenon", as she was named one of "2018 Entertainers of the Year".
On November 30, 2018, Cardi B was honored at Ebony's annual Power 100 Gala. Cardi ranked fifth on the 2018 Billboard Year-End Top Artists chart, while Invasion of Privacy ranked sixth. She achieved the most-streamed album of the year by a female artist globally in Apple Music, and ranked as the most streamed female artist of the year in the United States in Spotify. Editorial staff from Apple Music and Billboard named "I Like It" the best song of 2018, while Time magazine and Rolling Stone named Invasion of Privacy the best album of the year. Also in 2018, Time included her on their annual list of the 100 most influential people in the world. In its decade-end review article, NME stated that the era secured "her crown as the new Queen of Rap."