Bristol City moved 10 points clear of the Championship relegation zone as they comfortably saw off promotion-chasing Sheffield Wednesday.
City took the lead when Lee Tomlin’s shot hit Wednesday keeper Joe Wildsmith before crossing the line.
Soon after, Bobby Reid doubled the lead by firing into the top corner and Tomlin then converted a spot-kick.
Jonathan Kodjia scored City’s second penalty after the break before Richard O’Donnell’s own goal made it 4-1.
O’Donnell was the second of the two keepers to have seen the ball deflect into his own net in a game that has greatly improved City’s chances of another season in English football’s second tier.
Tomlin, who had to go off at half-time with an injury, was awarded the hosts’ opener by the referee despite Owls keeper Wildsmith having the final touch after the City striker’s volley deflected off a Wednesday defender.
Reid’s second for the Robins came soon after, when he latched onto Luke Freeman’s cross after a quick free-kick.
Tomlin was then brought down in the area by Liam Palmer and he converted the penalty himself to make it 3-0 at the break.
Reid was instrumental in City’s fourth, when he beat Wildsmith – a late replacement for the injured Kieren Westwood – to the ball and was brought down in the area. Kodjia duly dispatched the resultant spot-kick.
Wednesday netted just after the hour, when Wallace’s free-kick struck a post and hit O’Donnell’s fingertips on its way into the net.
Despite the defeat, the sixth-placed Owls remain five points clear of Cardiff, their nearest contenders for the final play-off position.