AbstractIn this paper, we deal with the initial-boundary-value problems for a general time-fractional diffusion equation which generalizes the single- and the multi-term time-fractional diffusion equations as well as the time-fractional diffusion equation of the distributed order. First, important estimates for the general time-fractional derivatives of the Riemann-Liouville and the Caputo type of a function at its maximum point are derived. These estimates are applied to prove a weak maximum principle for the general time-fractional diffusion equation. As an application of the maximum principle, the uniqueness of both the strong and the weak solutions to the initial-boundary-value problem for this equation with the Dirichlet boundary conditions is established. Finally, the existence of a suitably defined generalized solution to the the initial-boundary-value problem with the homogeneous boundary conditions is proved.