In this work with the aid of technics of quaternionic analysis we show that any solution of the Klein-Gordon equation can be represented via two solutions of the Dirac equation with the same mass. Moreover, the two functions corresponding to each solution of the Klein-Gordon equation are unique.