Jewish marriage is intended to be for life, but it has always been accepted that sometimes things do not work out. If the marriage breaks down and divorce appears to be inevitable, the man has to give his wife a get. This is a document of divorce and has to be presented at a rabbinical court (Bet Din).
The divorce then takes place after three months to make sure that the woman is not pregnant.