Celibacy is a vow to restrain sexual activities for a certain time or life long or until someone gets married. Celibacy has a different definition for different people. Some people refrain from just sexual intercourse while others refrain from all kinds of physical contact. Some people refrain from masturbation all together during their celibacy while some people use masturbation in place of partnered sex. Celibacy is often associated with religion however, some people prefer celibacy irrespective of their religious beliefs.
Sources:
https://www.healthline.com/health/healthy-sex/celibacy
https://www.webmd.com/sex/the-psychological-benefits-of-celibacy
https://www.britannica.com/topic/celibacy
https://www.verywellmind.com/celibacy-definition-benefits-drawbacks-concerns-5216754