After remaining constant for two days, the state-run oil marketing companies hiked the prices of petrol and diesel on Thursday.