Montana was the last state to raise its legal drinking age to 21, doing so in 1987 after a federal law was passed that required all states to have a minimum drinking age of 21 or risk losing federal highway funding.