ZAGREB, Croatia (AP) — Croatia’s government on Thursday accepted the resignation of the country’s chief state attorney after he was forced to step down for being a Freemason.

The government said it would ask lawmakers to confirm the resignation of State’s Attorney Drzen Jelenic, who came under fire after he acknowledged his membership in a Masonic lodge.

Jelenic initially refused to resign, saying that being a member of the fraternal organization did not affect his independence. However, the prime minister and other Croatian officials insisted he leave his post as the country’s top prosecutor.

Prime Minister Andrej Plenkovic said at a Cabinet meeting Thursday that membership in an organization or order like a Masonic lodge could undermine public trust in “the integrity of people running the highest institutions.”

“I would like to stress that this does not mean the state attorney has acted against the law or did not perform his duty objectively and independently,” Plenkovic said. “This duty does not leave any room for doubt in independence or objectivity.”

Jelenic became state’s attorney in 2018. Plenkovic said the government had no prior knowledge of his Masonry affiliation.