Sadly, Fred Weasley died in the Battle at Hogwarts (2nd May 1998).
Fred, along with his family and friends, returned to Hogwarts in the spring to participate in the final battle. He and George were assigned to defend the castle's secret passages by Kingsley Shacklebolt. When the Death Eaters forced their way inside, Fred fought next to his brother Percy, who had recently been reconciled with the family and combatted his former boss, Imperiused Minister for Magic Pius Thicknesse. Fred was killed in an explosion probably created by Augustus Rookwood.
His death was avenged when Rookwood was captured and confined by Aberforth Dumbledore, and was presumably sent to Azkaban.
Fred's twin brother George survived and later had a son who he named in honour of his lost brother: Fred Weasley II.