In 2012 at the London Games, Melanie anchored the 4×100-metre freestyle relay team to overcome a late surge by the Netherlands to win the gold medal for Australia, the only gold medal for the Australian swimming team at the 2012 Summer Olympics. She also won two Silver medals in the Women's 4 × 200 metre freestyle relay and Women's 4 × 100 metre medley relay.