(CNN) — For 137 years, the construction of Barcelona’s Sagrada Familia had been carried out illegally.

That all changed on Friday when the Roman Catholic church finally received its building permit, according to a Twitter post by Janet Sanz, in charge of urban planning.

Barcelona’s city council awarded the license to the committee in charge of completing the construction of the church for 4.6 million euros ($5.2 million), Sanz wrote.

A police officer stands by the Sagrada Familia basilica in Barcelona on August 20, 2017.

Source: Sagrada Familia gets building permit after 137 years