Rotherham United's winning run at home came to a disappointing end as they suffered a shock defeat against League One strugglers Gillingham.
The Millers, who started the game in fifth place and with five successive league victories at AESSEAL New York Stadium, paid the price for familiar defensive failings at set-pieces.
Twice they allowed Josh Parker free headers at corners, leading to the Gills' opener after three minutes and the game-clinching goal in the 87th minute.
To compound Rotherham's woes, Joe Mattock was sent off late on. The left-back pushed an opponent and received a second yellow card moments after his foul had brought a first booking.
This was the Millers' worst home display of the season.
Striker Kieffer Moore scored his 12th goal of the season, bringing Rotherham back into the game at 2-1 after 56 minutes, but Paul Warne's men could have no complaints about the result.
Old boy Tom Eaves, allowed too much space in the box, had headed the Gills 2-0 ahead just after half-time.
The Millers, sluggish and outfought, drop to sixth in the table.
Goals: Moore 56 (Rotherham); Parker 3, 87, Eaves 48 (Gillingham).
Rotherham (4-1-4-1): Rodak; Cummings, Ihiekwe, Wood, Mattock; Potter; Williams (Yates 89), Towell (Ball 54), Newell, Forde (Taylor 54); Moore. Subs not used: O'Donnell, Emmanuel, Ajayi, Clarke-Harris.
Gillingham (4-2-3-1: Holy; Clare, Ehmer, Zakuani (O'Neill 69), Garmston (Ogilvie H-T); Bingham, Hessenthaler; List (Wagstaff 58), Martin, Parker; Eaves. Subs not used: Nelson, Wilkinson, Cundle, Byrne.
Referee: Carl Boyeson (East Yorkshire).
Attendance: 7,865 (274).