In this paper we introduce a generalized Laplace transform in order to work with a very general fractional derivative, and we obtain the properties of this new transform. We also include the corresponding convolution and inverse formula. In particular, the definition of convolution for this generalized Laplace transform improves previous results. Additionally, we deal with the generalized harmonic oscillator equation, showing that this transform and its properties allow one to solve fractional differential equations.