The idea of the Lie algebra is studied in this research. The decomposition between Levi sub-algebra and the radical can be used to define the finite dimensional Lie algebra. The Levi decomposition is the name for this type of decomposition. The goal of this study is to obtain a Levi decomposition of the Lie algebra of dimension 8. We compute its Levi sub-algebra and the radical of Lie algebra with respect to its basis to achieve this goal. We use literature studies on the Levi decomposition and Lie algebra in Dagli result to produce the radical and Levi sub-algebra. It has been shown that can be decomposed in the terms of the Levi sub-algebra and its radical. In this resulst, it has been given by direct computations and we obtained that the explicit formula of Levi decomposition of the affine Lie algebra whose basis is is written by with is is the Levi sub-algebra of .