Israel's prime minister is condemning remarks by his education minister in favor of "conversion therapy," a controversial psychotherapy technique that seeks to turn gays into heterosexuals.

Benjamin Netanyahu wrote on Twitter that Rafi Peretz's statements are unacceptable and "do not represent my government's position."

In a televised interview over the weekend, Peretz said he supports conversation therapy and has performed it. Health officials have said the technique is scientifically dubious and possibly even dangerous.

Peretz, who leads small religious party, drew wide condemnation Sunday for his comments. Justice Minister Amir Ohana, who is openly gay, said "sexual orientation does not require therapy nor conversion. Preconceived notions and ignorance require therapy and conversion."

Peretz also stirred controversy last week when he compared intermarriage between Jews and non-Jews to a "second Holocaust."