If both husband and wife have hepatitis B, there is no problem of mutual infection in coitus, so they can have coitus. However, if either party is in an abnormal state of liver function, they should rest more and try to avoid coitus. Hepatitis B is a contagious disease caused by infection with hepatitis B virus, which is mainly transmitted through blood, sex and mother-to-child transmission. If both husband and wife have hepatitis B, there is no problem of mutual infection, you can have intercourse, but it is recommended to do a good job of contraception. If both husband and wife have hepatitis B, and either one or both are in the active stage of hepatitis B, liver function is abnormal, you should rest more, should try to avoid coitus or reduce the frequency of coitus, to avoid fatigue, aggravate the condition. If both husband and wife have hepatitis B and their condition is stable, they can consider getting pregnant. During pregnancy, it is recommended to monitor hepatitis B DNA load and liver function regularly, and in the mid-pregnancy, antiviral drugs can be taken as appropriate to carry out mother-to-child blockade to prevent vertical transmission to the fetus. Immediately after the birth of the child, hepatitis B vaccine and immunoglobulin injection to prevent infection after birth. Hepatitis B is a contagious disease, and you should always take precautions to protect yourself from it. Sharing personal items such as razors, toothbrushes, and eyebrow trimmers with others is not recommended.