You would generally assume that a divorce lawyer is the sort of person you might hire after your marriage has already gone sideways at any given point in time, but the truth is that you should consider hiring one before getting married in any way, shape or form as well. A big part of the reason why that is the case has to do with the fact that you can never truly tell where a marriage is going to go over the course of the next few years which is why it is so essential for you to at the very least try to cover all of your bases as much as can reasonably be expected of you.
The benefit of working with a lawyer for your divorce before it actually happens is that you can have them draw up some kind of a prenuptial agreement that your prospective partner would have to sign. This agreement would make it more difficult for this person to randomly divorce you and leave you with nothing to your name. A lot of people try to marry those that have a lot of wealth and power in an attempt to divorce them as soon as they can and take a huge payday, and if you want to protect yourself from such occurrences then it is absolutely essential that you hire a lawyer before things start to get out of hand.
This is true for women as well. After all, if your husband cheats on you, you would want some kind of legal document that would ensure that he would pay you a sum that would cover some of the psychological damage that this might have caused.