Stourbridge leapfrogged Otley into second place in the table with a game in hand over leaders Manchester - away at Redruth next week - in a one-point victory that went to the wire.
Despite a strong wind, it was a game of four quarters, not two halves. First Otley, then Stour, were dominant in each half, home centre Rob Whatmough getting the opening try with a break down the middle.
Though Alistair Bressington quickly replied with a penalty, full back Rob Kitching scored the second Otley try from a line out around the halfway line, but he could not convert either touchdown, and Bressington succeeded again.
A break by full back Tom Jarvis helped put Stour ahead for the first time at 13-10 as Bressington converted after centre Marcus Cook safely collected the awkward bounce of fly half Sam Robinson's chip towards goal.
Fed from a ruck, Robinson ended the first half with a neat drop-goal, but one minute after the interval Otley were back in front, a break by Whatmough from the kick-off putting winger Danny Smith over and Kitching converting.
On the hour a cross-kick by Robinson enabled winger Jon Hall to celebrate his club record 188th league appearance with his 45th league try - a splendid achievement by a versatile and often underrated player.
With eight minutes remaining, a Kitching penalty reduced the gap to one point, and Stour held their breath at the death as he missed from 45 yards.