This paper develops an instrumental variables estimator for quantile regression in panel data with fixed effects. Asymptotic properties of the instrumental variables estimator are studied for large N and T when Na/T → 0, for some a > 0. Wald and Kolmogorov-Smirnov type tests for general linear restrictions are developed. The estimator is applied to the problem of measurement errors in variables...