A flat pseudo-Euclidean Lie algebra is a real Lie algebra with a non degenerate symmetric bilinear form and a left symmetric product whose the commutator is the Lie bracket and such that the left multiplications are skew-symmetric. We show that the center of a flat pseudo-Euclidean nilpotent Lie algebra of signature (2, n − 2) must be degenerate and all flat pseudo-Euclidean nilpotent Lie algebras of signature (2, n − 2) can be obtained by using the double extension process from flat Lorentzian nilpotent Lie algebras. We show also that the center of a flat pseudo-Euclidean 2-step nilpotent Lie algebra is degenerate and all these Lie algebras are obtained by using a sequence of double extension from an abelian Lie algebra. In particular, we determine all flat pseudo-Euclidean 2-step nilpotent Lie algebras of signature (2, n − 2). The paper contains also some examples in low dimension.2. In [2], Aubert and Medina showed that all flat Lorentzian nilpotent Lie algebras are obtained by the double extension process from Euclidean abelian Lie algebras. 3. Guédiri showed in [7] that a flat Lorentzian 2-step nilpotent Lie algebra is a trivial extension of the 3-dimensional Heisenberg Lie algebra H 3 . 4. In [3,4], the authors showed that flat Lorentzian Lie algebras with degenerate center or flat nonunimodular Lorentzian Lie algebras can be obtained by the double extension process from flat Euclidean Lie algebras.The study of flat pseudo-Euclidean Lie algebras of signature other than (0, n) and (1, n − 1) is an open problem. In this paper, we tackle a part of this problem, namely, we study flat pseudo-Euclidean nilpotent Lie algebras of signature (2, n −2) and flat pseudo-Euclidean 2-step nilpotent Lie algebras of any signature. There are our main results: 1. In Theorem 3.1, we show that the center of a flat pseudo-Euclidean nilpotent Lie algebra of signature (2, n − 2) must be degenerate. From this theorem and Theorem 4.1 we deduce that all flat pseudo-Euclidean nilpotent Lie algebra of signature (2, n − 2) are obtained by the double extension process. 2. We give some general properties of flat pseudo-Euclidean 2-step nilpotent Lie algebras and we show that their center is degenerate. we show also that we can construct all this Lie algebras by applying a sequence of double extension starting from a pseudo-Euclidean abelian Lie algebra. 3. We give all 2-step nilpotent Lie algebras which can admit flat pseudo-Euclidean metrics of signature (2, n − 2) (Theorem 6.1 and Theorem 6.2). We will see that a class of 2step nilpotent Lie algebras which can admit a flat pseudo-Euclidean metrics of signature (2, n − 2) is very rich, contrary to the Euclidean and the Lorentzian cases. As example, we show that any 6-dimensional 2-step nilpotent Lie algebra which is not an extension trivial of a 5-dimensional Heisenberg Lie algebra, admits such metric.The paper is organized as follows. In section 2, we give some generalities on flat pseudo-Euclidean Lie algebras. In section 3 and section 4, we study flat pseudo-Euclidean metrics of signa...