Research have shown that sleep is associated with renal function. However, the potential effects of sleep duration or quality on kidney function in middle-aged and older Chinese adults with normal kidney function has rarely been studied. Our study aimed to investigate the association of sleep and kidney function in middle-aged and older Chinese adults. Four thousand and eighty six participants with an eGFR ≥60 ml/min/1.73 m2 at baseline were enrolled between 2011 and 2015 from the China Health and Retirement Longitudinal Study. Survey questionnaire data were collected from conducted interviews in the 2011. The eGFR was estimated from serum creatinine and/or cystatin C using the Chronic Kidney Disease Epidemiology Collaboration equations (CKD-EPI). The primary outcome was defined as rapid kidney function decline. Secondary outcome was defined as rapid kidney function decline with clinical eGFR of <60 ml/min/1.73 m2 at the exit visit. The associations between sleep duration, sleep quality and renal function decline or chronic kidney disease (CKD) were assessed based with logistic regression model. Our results showed that 244 (6.0%) participants developed rapid decline in kidney function, while 102 (2.5%) developed CKD. In addition, participants who had 3–7 days of poor sleep quality per week had higher risks of CKD development (OR 1.86, 95% CI 1.24–2.80). However, compared with those who had 6–8 h of night-time sleep, no significantly higher risks of rapid decline in kidney function was found among those who had <6 h or >8 h of night time sleep after adjustments for demographic, clinical, or psychosocial covariates. Furthermore, daytime nap did not present significant risk in both rapid eGFR decline or CKD development. In conclusion, sleep quality was significantly associated with the development of CKD in middle-aged and older Chinese adults with normal kidney function.