Lazio needed a stroke of fortune to win 2-1 at Empoli and keep up their bid for a European place in Serie A on Saturday.
Empoli took the lead against the run of play in the 67th minute with a stunning strike from Rade Krunic, the ball swerving wickedly into the top left corner from 30 yards.
But Krunic swiftly went from hero to villain as, less than a minute later, he deflected Felipe Anderson's cross into the path of Ciro Immobile, who slotted it into the bottom lead corner.
And Lazio scored the winner thanks to another deflection when Keita Balde Diao's effort went in off Andrea Costa's arm.
It was Lazio's first win since 2005 at Stadio Castellani, where they had lost on their past three visits in Serie A.