We establish deviation inequalities for the maxima of partial sums of a martingale differences sequence, and of an orthomartingale differences random field. These inequalities can be used to give rates for linear regression and the law of large numbers.