Twin terrors Dinny Corcoran and Jason Byrne fired Bohs to victory to ensure they retained their Premier Division status.
In front of President Michael D Higgins, the ten-man Gypsies withstood a late rally by relegation threatened Bray. With UCD and Athlone failing to win, Owen Heary's side are certain of top-flight football next year.
Corcoran got his 10th League goal of the campaign, capitalising on Dave Webster's mistake to head the ball over the on-rushing Stephen McGuinness from 14 yards.
Bohs doubled that lead straight from the second half restart as Byrne tapped in against his former side from Corcoran's centre.
The home side missed several gilt-edged chances before Bray pulled a goal back in the 65th minute, when Kelly's low centre was diverted over his own line by Dave Mulcahy.
Bohs had Eoin Wearen sent off in stoppage-time for lashing out at Dave Webster but they held on.
Bohemians - Delany; Pender, Lopes, Price, Memery; Devany (Walsh 85), Mulcahy, Wearen, Moore (Buckley 90); Byrne (Kavanagh 71), Corcoran.
Bray Wanderers - McGuinness; Cooney, Webster, Gorman, Maloney (Brown 55); Noble (Swan 64), Zambra, Graham Kelly, Hanlon; Jake Kelly, McDonagh.
Ref - K O'Regan (Kerry).