If you’re a man who doesn’t want children or has finished having children: get a vasectomy. They’re easy, low risk and help reduce the (significant) contraceptive burden on partners.
(Although technically a vasectomy is reversible, it isn’t guaranteed and so a vasectomy is not a good option if you intend to have children someday)