We study a discontinuous linear Hamiltonian system. We obtain a result on the existence and uniqueness of solutions. Later, we introduce the corresponding maximal and minimal operators for this problem and the self-adjoint extensions of such a minimal operator are established. Finally, we obtain an eigenfunction expansion