A histogram sieve estimator of the drift function in Ito processes and some semimartingales is constructed. It is proved that the estimator is pointwise and L¹ consistent and its finite-dimensional distributions are asymptotically normal. Our approach extends the results of Leśkow and Różański (1989a).