The 29-year-old singer will take to the main stage on July 14 at Victoria Park, London, for the first day of the summer festival, which will be the star's first live appearance since 2014.
The 'Novacane' hitmaker is expected to bring his chart-topping hits 'Swim Good' and 'No Church In The Wild' to the stage as well as tracks from his latest self-released number one album 'Blonde'.
A statement, which has been obtained by NME, about Ocean's comeback, read: "Visionary artist Frank Ocean has earned his place as one of the most celebrated and critically acclaimed acts of this era ... Frank Ocean is sure to lead the way of what will be an unforgettable roster, once again making London's own Lovebox a defining moment of the festival season. This outstanding headliner is the first taste of great things to come for Lovebox 2017."
Meanwhile, the R&B star recently spoke out about his music career following his decision to leave his long-term record label Def Jam after the release of his visual album 'Endless'.
Speaking previously about his future now he has left the company, he said: "Because I'm not in a record deal, I don't have to operate in an album format. I can operate in half-a-song format."
And the musician has revealed he felt a weight was lifted from his shoulders when he ditched the musical publishing company.
He explained: "With this record ['Blonde'] in particular, I wanted to feel like I won before the record came out, and I did, and so it took a lot pressure off of me about how the record even would perform after the fact. Once the goal is met, everything else is lagniappe. It's not essential for me to have a big debut week, it's not essential for me to have big radio records."