Baroda were 17 for one, chasing 172 for victory, against defending champions Uttar Pradesh at close on the third day's play of their Super League Ranji Trophy match in Baroda on Thursday.
Rajesh Pawar (10) and Conor Williams (3) were at the crease.
Rakesh Patel's devastating seam bowling restricted Uttar Pradesh in their second innings.
Patel claimed five wickets for 75 as UP could score just 210, setting a victory target of 172 for the host team.
Rohit Prakash struck a timely half century (58) to help UP get past the 200 mark. Ali Murtuza (45) and Pravin Kumar (28) also scored some useful runs.
Uttar Pradesh's could have been in a more miserable situation had umpire Subroto Paul not turned down a catch appeal against Murtuza early in his innings off the bowling of Rakesh Patel.
Earlier in the day, resuming at their overnight score of 259 for five, Baroda were all out for 308 runs, getting a lead of 39 runs.
Paceman Parvin Kumar finished with figures of six for 83 to end Baroda's hopes of taking a big lead.