Abstract: An inverse problem to recover a space-dependent factor of a source term and an order of a time derivative in a fractional diffusion equation from final data is considered. The uniqueness and stability of the solution to this problem is proved. A direct method to regularize the problem is proposed.