The Spanish city had been due to host the first edition of the International Roller Sports Federation (FIRS) in 2017 after being awarded the Games last year.
Following elections in Barcelona, however, the new administration asked FIRS to be released from the promise they had made to stage the Games.
The governing body announced Nanjing in China as their replacements for the inaugural event in January.
Barcelona will now be the hosts of the second World Roller Games with representatives of the municipality have signed the ratification protocol in the city’s town hall.
Carmelo Paniagua Manso, Royal Spanish Federation of Skating President, joined FIRS President Sabatino Aracu to sign the agreement.
"Barcelona will be the perfect match for the 2019 edition of the FIRS Roller Games,” said Aracu.
“I am confident it will be a great event."
Around 6,000 athletes are expected to attend the competition, which will see the World Championships in all FIRS disciplines contested.
It will include artistic, speed, rink hockey, inline hockey, roller freestyle and skateboarding, as well as inline alpine, inline downhill, inline aggressive and roller derby events.
Competition is due to be held across 16 days, with the governing body stating that seminars, performances, exhibitions and a roller village will see the host city enjoy the presence of “the most youth-oriented and captivating sports of the moment”.