We study the action of the Laplace transform on rearrangement-invariant function spaces. We focus on the optimality of the range and the domain spaces.