An impurity intermediate band due to Pb doping induced promising thermoelectric performance of Ca5In2Sb6.