Adam Le Fondre and Ben Pringle struck to ensure Rotherham continued their 100% start to the League Two season and left Crewe pointless from their opening three matches.
Byron Moore netted for the hosts to set up a grandstand finish but United hung on to triumph 2-1 at Gresty Road.
Crewe should have been in front when Shaun Miller cut back for Lee Bell, only for the midfielder to side-foot the wrong side of the upright.
The home side looked bright but Rotherham took the lead in the 15th minute when Le Fondre lost Carl Martin to nod in Lewis Grabban's cross.
Moments later, Martin was in the right place to hack Danny Schofield's low centre to safety seconds before it found the predatory Le Fondre.
Steve Phillips then produced an athletic fingertip save to palm away Le Fondre's stunning 25-yard effort while Ajay Leitch-Smith kept Ryan Cresswell's header from crossing the line.
The Millers did double their lead in the 72nd minute when Dave Artell gave the ball away to substitute Pringle, whose 35-yard shot beat Phillips via a deflection.
Moore pulled one back for the Alex two minutes later, slotting Miller's cut-back low into the far corner.
And Crewe almost got the equaliser their play deserved when Conrad Logan parried Ashley Westwood's long-rage strike into the path of Miller, but the visiting keeper stood firm to deny the forward and ensure Rotherham walked away with all three points.
Copyright (c) PA Sport 2009, All Rights Reserved.