Fred Nile, the former New South Wales politician and longtime figurehead of the Christian Democratic Party, has died aged 92, his family said.

Nile served in the NSW Legislative Council for more than 40 years. He entered the upper house in 1981 and retired after unsuccessfully contesting the 2023 election.

An ordained Congregational Union minister, Nile was a controversial figure and a standard-bearer for Christian and social conservative politics. He and the party he led for decades frequently opposed drug use, abortion and homosexuality.

“It is with deep sadness the Nile family announces the passing of Rev. the Hon. Frederick John Nile who passed away peacefully on the 21st of November at the age of 92,” his family said in a statement. The statement said he is survived by his wife, children, grandchildren and great grandchildren, and that details of a service or memorial would be shared soon.

Alex Greenwich, the member for Sydney, said he and Nile disagreed on “a lot” but had a good working relationship, particularly on protecting First Nations cultural sites.

“Rev. Nile also played a key role in passing legislation for the expungement of prior homosexual convictions, landmark laws that cleared the names of hundreds of gay men,” Greenwich said.

“Rev. Nile played the ball, not the person. His opposition to many of the reforms I delivered came from his faith, and he didn’t engage in the personalised vitriol that comes from many of today’s right-wing politicians.”

Greenwich said he had asked premier Chris Minns for a state funeral for Nile.

Lyle Shelton, whom Nile initially chose as his successor to lead the Christian Democratic Party in 2021 before they fell out, said Nile “stood in the public square for Christian ethics and moral virtues at time when few would”.

“Cruelly caricatured by his opponents, anyone who met him knew the caricature of the mockers did not fit,” Shelton said.