AJ Tracey, Biffy Clyro and Calvin Harris are also part of the lineup for the 17th edition of the festival, which is slated to take place in Camperdown Park in Dundee, Scotland May 22- 24.
"Yes, Radio 1! Absolutely thrilled to be back at Radio 1's Big Weekend, it's the start of the summer and the crowds in Scotland are always insane. See you soon, Dundee!" Styles said in a press release.
"Radio 1 has been a huge part of my journey over the last few years, so I am beyond excited to be coming back to Big Weekend! It's going to super fun to perform for you guys in Scotland," added Cabello.
About 70,000 fans are expected to attend, the network said.
More musical acts will be announced in the coming weeks.