SP workers wearing their trademark red caps blocked train movement at Allahabad railway station.
Saket Express and Ganga-Gomti Express were stopped in Allahabad. SP workers also targetted the Sultanpur Express at Varanasi.
BJP state president Laxmi Kant Bajpayi said the strike was successful.
The party's workers moved on bullock carts around Aligarh, Mathura, Hardoi and Sitapur.
However, no untoward incident was reported during the shutdown, police said.
Image: Daily wage workers sleep and relax at a wholesale market during a nationwide strike to protest a steep hike in gas prices in New Delhi, India, Thursday, May 31, 2012.