Yours is a straightforward question – is masturbation by a person deprived of a sexual partner (from the opposite sex, mostly) a sign of mental illness? The answer, in my view, is ‘no’. Sexual needs of all living beings (the way they existed in them) are nature-given. As humans developed over hundreds of centuries and started living in more and more evolved social environments, many societies formed social and moral restrictions on people’s sexual behaviours. That brought in the ‘dos’ and ‘don’ts’, rules, laws etc. which might have been the needs of the times the concerned societies existed. The result is that many of such living environments conditioned their people to treat sex as a topic of taboo. Yet, for any person sexual feelings remain to be nature-given and satisfying those feelings and needs in a legally, socially, ethically, morally and physiologically acceptable way, without harming the freedom of choice and personal rights of any other person involved, in my view, is, and will continue to be, natural.
This answers the second part of your question too.
Answered2022-12-22 12:16:00
Let others know if this answer was helpful