This paper is devoted to studying the existence and uniqueness of solutions to the boundary value problems for a impulsive fractional differential equation in Banach spaces. The arguments are based upon the methods of noncompact measure, Banach fixed point theorem and Krasnoselskii's fixed point theorem. Some examples are given to demonstrate the application of our main results.