The rapper will perform a headline set at Mallorca Rocks on July 3 and a second gig at Ibiza Rocks on July 25.
Rob da Bank will play a DJ set at Ibiza Rocks on July 4, ahead of Ben Howard's headline performance.
"I've been playing at Ibiza Rocks since it started and injected a much-needed different vibe into Ibiza party life," said Rob da Bank.
"I've loved playing many times since and can't wait to get back to that crazy Ibiza Rocks Hotel and warm it up for the brilliant Ben Howard. Ibiza Rocks bloody well rocks!"
Meanwhile, The Maccabees will play Ibiza Rocks on June 20 in support of their recent album Given to the Wild.
"This will be our first time at Ibiza Rocks," the band said. "It's a pleasure to be involved in such a strong lineup of shows this year. Thanks for having us!"
Axwell and Fenech-Soler will play a show at Mallorca Rocks on July 24 and Spector will support the Kaiser Chiefs at Ibiza Rocks on June 27.
Tickets for the shows are on sale now.
> Kasabian, Ed Sheeran, Example for Ibiza and Majorca Rocks 2012
Watch the music video for Plan B's new single 'iLL Manors' below: