Abstract. We derive in this paper a unified framework for a priori and a posteriori error analysis of mixed finite element discretizations of second-order elliptic problems. It is based on the classical primal weak formulation, the postprocessing of the potential proposed in [T. Arbogast and Z. Chen, On the implementation of mixed methods as nonconforming methods for secondorder elliptic problems, Math. Comp. 64 (1995), 943-972], and the discrete Friedrichs inequality. Our analysis in particular avoids any explicit use of the uniform discrete inf-sup condition and in a straightforward manner and under minimal necessary assumptions, known convergence and superconvergence results are recovered. The same framework then turns out to lead to optimal a posteriori energy error bounds. In particular, estimators for all families and orders of mixed finite element methods on grids consisting of simplices or rectangular parallelepipeds are derived. They give a guaranteed and fully computable upper bound on the energy error, represent error local lower bounds, and are robust under some conditions on the diffusion-dispersion tensor. They are thus suitable for both overall error control and adaptive mesh refinement. Moreover, the developed abstract framework and a posteriori error estimates are quite general and apply to any locally conservative method. We finally prove that in parallel and simultaneously in converse to Galerkin finite element methods, under some circumstances, the weak solution is the orthogonal projection of the postprocessed mixed finite element approximation onto the H 1 0 (Ω) space and also establish several links between mixed finite element approximations and some generalized weak solutions.