Malta has become the first country in Europe to ban gay conversion therapy.

A new bill, which passed unanimously, stipulates that any medical professional found guilty of prescribing the so-called ‘gay cure’ therapy will be fined or sent to prison.

According to the new law, trying to "change, repress or eliminate a person's sexual orientation, gender identity and/or gender expression" is now a criminal offence.

While the law applies to everyone, doctors who offend face the heftiest penalties, risking a fine of up to 10,000 Euros (£8,450) or a year in prison, according to Malta Today.

Politicians who voted through the Affirmation of Sexual Orientation, Gender Identity, and Gender Expression Bill, labelled gay cure therapy as “deceptive and harmful”.

The bill also enshrined in law that "no sexual orientation, gender identity or gender expression constitutes a disorder, disease or shortcoming of any sort".

Malta was named the best European country for LGBT rights by advocacy group ILGA-Europe in 2015.

Professional bodies based on the island, which was named the best European country for LGBT rights by advocacy group ILGA-Europe in 2015, welcomed the law change.

“[We] openly disapprove of practices are which are harmful to people in our community," the Malta Chamber of Psychologists, the Maltese Association of Psychiatry, the Malta Association of Family Therapy and Systemic Practice, and the Malta Association for the Counselling Profession said in a joint statement.

“Not only does [gay conversion therapy] reject a group of individuals on the basis of unfound prejudice and lack of tolerance for diversity, but also because it impinges on the international recognition of LGBTIQ rights.

“As a body we promote respect and equality for all persons, and are determined to continue working towards ensuring our clients can enjoy as safe a therapeutic experience as they deserve.”

The top 15 worst countries to be gay in Europe Show all 15 1 /15 The top 15 worst countries to be gay in Europe The top 15 worst countries to be gay in Europe 15. Italy Getty Images The top 15 worst countries to be gay in Europe 14. Macedonia Processed by: Helicon Filter; The top 15 worst countries to be gay in Europe 13. Poland Getty Images The top 15 worst countries to be gay in Europe 12. Liechtenstein The top 15 worst countries to be gay in Europe 11. Lithuania The top 15 worst countries to be gay in Europe 10. Latvia This content is subject to copyright. The top 15 worst countries to be gay in Europe 9. San Marino The top 15 worst countries to be gay in Europe 8. Moldova The top 15 worst countries to be gay in Europe 7. Belarus Getty Images The top 15 worst countries to be gay in Europe 6. Ukraine Getty Images The top 15 worst countries to be gay in Europe 5. Monaco The top 15 worst countries to be gay in Europe 4. Turkey Getty Images The top 15 worst countries to be gay in Europe 3. Armenia The top 15 worst countries to be gay in Europe 2. Russia Getty Images The top 15 worst countries to be gay in Europe 1. Azerbaijan Norway's Mette B. Bjerknaes competes during the Powerboat race on July 6, 2013 in Baku. Baku hosts the second race F2 World Championship 2013. The 2 mile course is designed just in front of the Baku Boulevard facing the Caspian Sea. AFP PHOTO / TOFIK BABAYEV (Photo credit should read TOFIK BABAYEV/AFP/Getty Images) Getty/AFP

Gay conversion therapy has increasingly come under the spotlight in recent years. It remains more popular in the US than in Europe, where the law only prohibts offering the 'therapy' to minors, in some states.

The World Psychiatric Association has denounced the practice as unethical, unscientific and harmful to those who undergo it.