By using the interaction between derivative of Ricci scalar and baryon number current, a mechanism for generating a baryon asymmetry is introduced in [5). We investigated this mechanism for a perfect cosmic fluid in the Bianchi type I universe. We find out the effect of anisotropy of the universe on the baryon asymmetry for the case which the equation of state parameter, w, is dependent to time.