Gillingham secured their first win since promotion to League One with a comprehensive victory over Crewe.
Cody McDonald gave the Gills the lead by latching onto a Charlie Lee through ball before calmly slotting home.
Joe Martin doubled the advantage with a curled free-kick from 20-yards.
Crewe boss Steve Davis introduced Vadaine Oliver but he was denied twice by Gills keeper Stuart Nelson, before Adam Barrett made the points safe when he crashed home from close range.
Gillingham leapfrog above Crewe who now have the worst goal difference in the division.
The Alex were not helped by an early knee injury to defender Harry Davis, who went off in the ninth minute.
VIEW FROM THE DRESSING ROOM
Gillingham manager Martin Allen told BBC Radio Kent
"It's a reward for all the hard work the players and staff have put in.
"To put in a performance like that with a clean sheet, similar to last year with team spirit and togetherness, the players played very, very well.
"It was nice for me personally for me to do something for them."
Crewe Alexandra 01 Phillips 04 Davis (Ray - 9' ) 05 Ellis 16 Guthrie 25 Audel 08 Osman 11 Moore 14 Inman 20 Turton 07 Clayton (Molyneux - 61' ) 10 Leitch-Smith (Oliver - 61' ) Substitutes 21 Garratt 12 Ray 24 Molyneux 26 Aneke 42 Grant 19 Oliver 27 Colclough Gillingham 01 Nelson 03 Martin 05 Davies 23 Harriman 26 Barrett 07 Whelpdale (Dack - 77' ) 12 Gregory 18 Lee 19 Hollands (Allen - 77' ) 09 Kedwell 10 McDonald (Weston - 68' ) Substitutes 21 Howard 06 Legge 04 Linganzi 11 Weston 14 Allen 15 Dack 08 Akinfenwa