Baroda need 94 runs for an outright victory over Hyderabad in the Ranji Trophy Group 'A' match.
After conceding a first innings lead of 77 runs, they fought their way back, bowling Hyderabad for 198 and then scoring 182 for 5 in the second innings in Hyderabad on Monday.
Left arm spinner Rajesh Pawar ran through Hyderabad, who resumed at 179 for 6 on day 3, in the first hour of play with a brilliant hat-trick, dismissing overnight batsman Ibrahim Khaleel for 65 (inclusive of five hits to the fence), N P Singh (0) and Venkatapathy Raju (0).
Baroda, who were skittled out for 93 in reply to hosts' 170 in the first innings, began their second essay in the earnest despite losing skipper Connor Williams (6) early.
The magic of first innings hero N P Singh did not work as the other opener, Satyajit Parab, and Hrishikesh Parab played with ease before Satyaji was well taken by Rayudu for 41, inclusive of five fours.
For the hosts, skipper Raju claimed two wickets while speedster Md Ghouse and Shahnawaz took a wicket each.
Hyderabad (1st innings): 170
Baroda (1st innings): 93
Hyderabad (2nd innings): overnight 179 for 6
D Manohar lbw Y Pathan 58
P Shashank Nag c Martin b IS Pathan 8
A Rayudu lbw Patel 6
A Yadav b Patel 2
A Singh st Martin b Y Pathan 38
I Khaleel c R Parab b Pawar 65
J Yadav lbw Patel 9
M Ghouse c Parab b Y Pathan 0
F Shahnawaz not out 0
N Singh lbw Pawar 0
V Raju b Pawar 0
Extras: (b 5, lb 5, w 1, nb 1) 12
Total: (all out, 81.3 overs, 331 mins) 198
Fall of wickets: 1-12, 2-27, 3-33, 4-82, 5-147, 6-179, 7-186, 8-198, 9-198, 10-198.
Bowling: Patel 21-6-46-3, I Pathan 16-2-44-1, Y Pathan 23-8-54-3, Joshi 5-0-14-0, Pawar 16.3-3-30-3.
Baroda (2nd innings): target- 276 runs
C Williams c Khaleel b Shahnawaz 6
S Parab c Rayudu b Ghouse 41
R Parab not out 56
J Martin run out (Manohar/Khaleel) 13
S Gaekwad b Raju 2
Y Pathan lbw b Raju 11
R Pawar not out 39
Extras: (b 8, lb 6) 14
Total: (5 wickets, 76 overs) 182.
To Bat: N Mongia, R Patel, S Joshi, I Pathan.
Fall of wickets: 1-44, 2-58, 3-100, 4-106, 5-130.
Bowling: Singh 15-6-31-0, Ghouse 13-3-36-1, Shahnawaz 12-2-28-1, Yadav 14-2-37-0, Raju 21-7-31-2, Manohar 1-0-5-0.