Substitute defender Sam Oji scored a last-minute own-goal as Bray Wanderers made it four 1-0 league wins on the bounce at Eamonn Deacy Park.
Conor Winn saved a fourth minute penalty from Graham Kelly but to no avail as he conceded with the last play of the game.
Both sides had early opportunities, Jake Keegan curled his effort just wide of Peter Cherrie’s goalmouth and Padraic Cunningham’s shot was cleared by Alan McNally.
But Bray should have taken the lead when Chris Lyons was fouled by Stephen Walsh in the Galway area however Winn got down brilliantly to his right to save Kelly’s effort.
Galway survived and should have punished the visitors in the 15th minute when Cunningham was clear through one-on-one with Cherrie but the Bray ’keeper was equal to it.
Ryan McEvoy, Lyons and Cassidy all tested Winn before the end of the first-half but the sides went in 0-0 at the break.
Galway had more of the territory after half-time but missed Ryan Connolly who had gone off injured after 20 minutes.
Oji and Walsh performed heroics to stop John Sullivan’s shot on the Galway line. An Oji mistake almost gifted Chris Lyons a goal late and Cherrie saved from Paul Sinnott.
But Bray got the winner when Cassidy crossed and Oji put the ball past his own ’keeper.
Galway United: Winn; Horgan, Sinnott, Walsh, Ludden; Shanahan, Byrne, O’Leary (Molloy 66), Connolly (Oji 21), Keegan; Cunningham.