(AFP)  PRAGUE, Czech Republic — The Czech government on Thursday said it had bought a controversial pig farm located on the site of a former Nazi camp for Roma people, paying millions of euros for the right to shut it down.

“After 20 or so years, we finally managed to get rid of this harmful legacy from the past,” Culture Minister Daniel Herman told reporters.

The farm was constructed in the 1970s during Communist rule at Lety, a village south of Prague which was the site of a Nazi-era concentration camp where hundreds of people in the Roma and Sinti minorities died in 1942 and 1943.

Human rights activists at home and abroad denounced its existence and the center-left government of Prime Minister Bohuslav Sobotka promised to find a solution before the end of his term this month.

The state bought the farm from the Agpi agricultural firm for 450 million koruna (18 million euros, $21 million) and will pay an additional 120 million koruna to clean the site.

The contract still needs to be approved at a general meeting of the firm, which is slated for December 4.

Another signatory to the agreement was Jana Horvathova, who heads the Museum of Romani Culture in the eastern city of Brno that will revamp the site after the pig farm is dismantled.

The European Grassroots Antiracist Movement (EGAM) welcomed the move calling it a “historic day for the Roma.”

“Now the challenge will be to transform the site from a dishonourable place to one with dignity,” EGAM president Benjamin Abtan told AFP.

About 1,300 Roma were interned at Lety from August 1942 to May 1943, and around 330, including at least 241 children, died there after a typhus outbreak.

Many inmates were later transferred to the Auschwitz-Birkenau complex where more than a million people are estimated to have been killed.

Under the Nazis, around 90 percent of Czech Roma were exterminated.