Observing that India was witnessing a stabilisation of the HIV epidemic, the Union Health Ministry on Friday favoured legalising homosexuality and removing discrimination against other vulnerable sections like sex workers in order to contain spread of the dreaded virus.