〜末(に)
after (a long process), finally
Verb た-form + 末(に) · Noun + の + 末(に)
Sign up free to review this point on a spaced schedule.
末 means "end", and 末に describes the outcome reached after a long, difficult process: 長い話し合いの末、ようやく合意した, "after long discussions, we finally reached an agreement".
The first half stresses time and effort: thinking hard, struggling, fighting, researching. The outcome is usually a decision or an achievement, though it can be neutral.
It follows a た-form, or a noun with の: 苦労の末, "after much hardship". The に is optional.
Compare あげく, which is used when the long process ends badly, and 結果, which just states an outcome without stressing the struggle. On its own, 末 also means "the end of" a period: 月末, "the end of the month".
Examples
長い話し合いの末、ようやく合意した。
After long discussions, we finally reached an agreement.
いろいろ考えた末に、この大学に決めた。
After a lot of thought, I decided on this university.
苦労の末、店を開くことができた。
After much hardship, I was able to open my own shop.
激しい戦いの末、チームは優勝した。
After a fierce battle, the team won the championship.
三年の研究の末、新しい薬が完成した。
After three years of research, the new medicine was completed.